|
|
|
|
|
by cmrdporcupine
1121 days ago
|
|
It does sort of bring up the general question of why this is a compile time and not runtime constant. I doubt x86 will double its cache-line size any time soon, but if it did -- and people are running binaries with cache-padding at 64-bytes -- expected behaviour is going to differ. Not in a way that's going to make anybody lose their minds, mind you, but this kind of micro-optimization will just cease to be effective. EDIT: naturally I understand that compile makes sense for e.g. statically sizing array sizes etc. |
|
[0]: https://devblogs.microsoft.com/oldnewthing/20230424-00/?p=10...