Hacker News new | ask | show | jobs
by Boereck 455 days ago
Interesting! I wonder if you have used PGO in the project? Forcing fields to be located next to each other kind of feels like something that PGO could do for you.
1 comments

I basically did manual PGO because I was also reducing the size of several integer fields at the same time to pack more into each cache line. I’m excited to try out the rustc+LLVM PGO for future optimizations.
A long-standing issue with that was just recently fixed: https://github.com/rust-lang/rust/pull/133250