2 ms·
> This code is in a performance critical loop and it looks like a waste - we never run with the "debug" flag enabled[1]. 1. One historical solution to this spec
by jfrunyon 5y ago
> This code is in a performance critical loop and it looks like a waste - we never run with the "debug" flag enabled[1]. 1. One historical solution to this specific 'if debug' problem is called "runtime nop'ing".
You know what another historical solution is called? Use a compile-time constant and let the damn optimizer optimize. (Virtually) no modern, widely used compiler would fail to optimize out `if (0) { ... }`.
Also, why does M1 performance matter to Cloudflare's software? I kinda doubt their servers are on Macbooks.
- majke 5y agoWe do run aarch64. We are very interested if M1 is faster than the ARM's we have. https://blog.cloudflare.com/arms-race-ampere-altra-takes-on-aws-graviton2/ https://blog.cloudflare.com/arms-race-ampere-altra-takes-on-... https://blog.cloudflare.com/porting-our-software-to-arm64/ https://blog.cloudflare.com/porting-our-software-to-arm64/