Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

> 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.



We 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-...

https://blog.cloudflare.com/porting-our-software-to-arm64/




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: