qnrd

@qnrd@lemmy.ml

This profile is from a federated server and may be incomplete. Browse more on the original instance.

qnrd,

Reordering members can lead to better packing and a smaller memory footprint, due to how alignment works. If you’re iterating a large number of objects, having smaller objects is very favorable in terms of cache locality; you get fewer cache misses, and prefetching is more effective.

For the curious: pahole is a very useful tool for this type of code analysis.

  • All
  • Subscribed
  • Moderated
  • Favorites
  • fightinggames
  • All magazines