News for hackers. Stuff that matters.
Re:Old box, dumb code, few thousand connections, no big deal by cellularmitosis on Friday May 08, 2020 @07:36PM (#23120705)
A great talk which gets you thinking in this mindset is "Data-Oriented Design and C++" by Mike Acton https://www.youtube.com/watch?v=rX0ItVEVjHc

As an example, if you are checking a boolean flag (1 bit) on an object, and it ends up being a cache miss (and x86_64 cache line size is 64 bytes), then your computer just went through all the expense of pulling in 512 bits from RAM yet it only used 1 of them. You are achieving 0.2% of the machine's possible throughput.

There are no comments on this comment yet.