[Boards: 3 / a / aco / adv / an / asp / b / biz / c / cgl / ck / cm / co / d / diy / e / fa / fit / g / gd / gif / h / hc / his / hm / hr / i / ic / int / jp / k / lgbt / lit / m / mlp / mu / n / news / o / out / p / po / pol / qa / r / r9k / s / s4s / sci / soc / sp / t / tg / toy / trash / trv / tv / u / v / vg / vp / vr / w / wg / wsg / wsr / x / y ] [Home]
4chanarchives logo
>tfw accidentally used a linked list once and now everyone
Images are sometimes not shown due to bandwidth/network limitations. Refreshing the page usually helps.

You are currently reading a thread in /g/ - Technology

Thread replies: 7
Thread images: 1
File: linux_insert1.png (13 KB, 530x291) Image search: [Google]
linux_insert1.png
13 KB, 530x291
>tfw accidentally used a linked list once and now everyone thinks I am a retarded
>>
>has no impact until about 100k elements
>>
>>55511160
>multiples of 2000 seconds (over half an hour)
>no impact
>>
>>55511119
Isn't vector random insert supposed to be much more expensive since it has to move all the later elements and often reallocate memory and move *all* elements? With a linked list, the insertion is trivial.
So is searching the linked list just super slow because the memory isn't contiguous?
>>
itt pajeet who didn't learn basic algorithms
>>
>>55511385
Are you unable to read the post you're replying to? Or are you unable to obtain information from a graph, you retard?
>>
>>55512359
It's all about the cache these days. Vectors lay elements contigously thus being very cache friendly
Thread replies: 7
Thread images: 1

banner
banner
[Boards: 3 / a / aco / adv / an / asp / b / biz / c / cgl / ck / cm / co / d / diy / e / fa / fit / g / gd / gif / h / hc / his / hm / hr / i / ic / int / jp / k / lgbt / lit / m / mlp / mu / n / news / o / out / p / po / pol / qa / r / r9k / s / s4s / sci / soc / sp / t / tg / toy / trash / trv / tv / u / v / vg / vp / vr / w / wg / wsg / wsr / x / y] [Home]

All trademarks and copyrights on this page are owned by their respective parties. Images uploaded are the responsibility of the Poster. Comments are owned by the Poster.
If a post contains personal/copyrighted/illegal content you can contact me at [email protected] with that post and thread number and it will be removed as soon as possible.
DMCA Content Takedown via dmca.com
All images are hosted on imgur.com, send takedown notices to them.
This is a 4chan archive - all of the content originated from them. If you need IP information for a Poster - you need to contact them. This website shows only archived content.