Liste des Groupes | Revenir à cl c |
On Fri, 13 Jun 2025 08:00 Bonita Montero wrote:Therefore I love bounds-checking C++ containers with MSVC (debug>
builds) and with the libstdc++ runtime (enabled via macro). (...)
Debug builds are usually much slower, but if you use C++ that's even
more slower since simple things like a container acces via []-operator
occur with a separate function call while debugging. With iterator
-debugging that's even slower. But this price is worth the advantage
that you can easily find bounds-problems with C++.
Sounds similar to Pixar's "Electric Fence" that Kaz mentioned earlier:
https://linux.die.net/man/3/efence
>
Depending on the performance impact this may or may not be a viable
solution to debug a rare production issue, but still nice to know it
exists.
Les messages affichés proviennent d'usenet.