3 ms·
All code is perf-sensitive. Not all code is important enough to be written as we'd like it to be.
by otabdeveloper4 1y ago
All code is perf-sensitive. Not all code is important enough to be written as we'd like it to be.
- zelphirkalt 1y agoWe don't like all code to be written in some C or C++ dialect.
- gf000 1y agoThen why use C? Take a look at actually perf-sensitive hot loops, and they are predominantly some inline assembly with a bunch of SIMD hacks, which can be 1000x times faster than C...
- otabdeveloper4 1y agoUnfortunately inline assembly isn't portable even to different revisions of one CPU architecture, much less different ones.