This is the mail archive of the
libstdc++@gcc.gnu.org
mailing list for the libstdc++ project.
debug extension overhead
- From: Silvius Rus <rus at google dot com>
- To: libstdc++ at gcc dot gnu dot org
- Cc: Paolo Carlini <paolo dot carlini at oracle dot com>, Benjamin Kosnik <bkoz at redhat dot com>, Doug Gregor <doug dot gregor at gmail dot com>
- Date: Wed, 20 May 2009 11:17:14 -0700
- Subject: debug extension overhead
(This is only about the debug extension.)
Hello libstdc++ maintainers,
Have you considered adding a knob that would turn on a subset of
_GLIBCXX_DEBUG checks that have lower overhead, e.g., guaranteed
constant factor? Some users are giving up on it due to high overhead
in certain cases, but they could benefit from cheap checks, such as
vector subscript checks. Also, it would increase its usability in
time sensitive applications.
1. Does this make sense? Would this hurt in any way other than adding
maintenance overhead?
2. How hard would it be to implement something like _GLIBCXX_DEBUG_FAST?
Thank you,
Silvius