Day 18 of Advent of Compiler Optimisations!

You have a function with a fast path and a slow path. Inline it everywhere? Massive code bloat. Don't inline? You miss the fast path performance gains. It's an impossible choice—or is it? The compiler finds a way to get the performance benefits of inlining without paying the full code size cost. But how?

Read more: xania.org/202512/18-partial-in
Watch: youtu.be/STZb5K5sPDs

0

If you have a fediverse account, you can quote this note from your own instance. Search https://mastodon.gamedev.place/users/sol_hsa/statuses/115740851741372815 on your instance and quote it. (Note that quoting is not supported in Mastodon.)