For as long as I can remember, in C and C++ there existed this mantra that bounds checking had a huge performance impact. And that justified having none in std::vector and other containers, causing 40% of the memory bugs. Then the good people at Google went and did it and the performance impact was just 0.3%.
@chandlerc talks about that misconception here: https://chandlerc.blog/posts/2024/11/story-time-bounds-checking/
=> More informations about this toot | View the thread | More toots from urixturing@hachyderm.io
=> View chandlerc@hachyderm.io profile
text/gemini
This content has been proxied by September (3851b).