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: https://xania.org/202512/18-partial-inlining
Watch: https://youtu.be/STZb5K5sPDs