Blog149.4K views3,825 votes0 replies574 following
GCC `__builtin_expect`: Moving Error Handling Off the Hot Path
Learn how to use GCC's `__builtin_expect` to keep rare error-handling code out of the hot path, when it beats profile-guided optimization, and how to verify the generated assembly.