3 ms·
Making all vector accesses bounds-checked, as all memory-safe languages do, is a recipe for slow code.
by mgaunard 2y ago
Making all vector accesses bounds-checked, as all memory-safe languages do, is a recipe for slow code.
- UncleMeat 2y agoYou can try turning on hardened libc++ and see what performance hit you get. It isn't really too bad. And a considerable portion of that is waste caused by other design choices in C++ making it difficult for the compiler to remove redundant bounds checks.