On Monday, 17 February 2014 at 22:19:24 UTC, ponce wrote:
Granted code bloat is a real thing and you _might_ have instruction cache problems, but the problem only ever show itself when the working set of code exceed the instruction cache capacity. Ie. a huge executable might not be a good predictor for reduced instruction cache efficiency.
I heard a story of a C++ gamedev team that would use type-punning to reduce code size. std::vector<void*> would be the only instantiation of std::vector + casts everywhere. That was for console binaries.
