TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

Performance Quiz #14: Memory Locality, X64 vs. X86, Alignment, and Density

5 pointsby Quppaover 10 years ago

1 comment

signa11over 10 years ago
explanation by &#x27;Ryan&#x27; on the linked page:<p>Wait - are you concluding that completely randomized access is the same speed as sequential for very large cases? That would be very surprising!!<p>What&#x27;s the range of rand()? If it&#x27;s 32k that would mean you&#x27;re just shuffling the first 32k items and doing basically sequential reads for most items in the large case, and the per-item avg would become very close to the sequential case. This matches your data very well.