Dead code (was: Re: Good numbers from Ritter's new string allocator)

Paolo Carlini pcarlini@unitus.it
Thu Nov 15 15:59:00 GMT 2001


Benjamin Kosnik wrote:

> Cool. What I'd like to see is an updated ChangeLog, and then we'll wait
> to see what Loren says. I'd like to check in what you've posted as a
> starting point: fine tuning can happen in subsequent patches.

Well, I have a Linux and a pagesize of 4096 is perfect for me, so I can only agree with
you ;-)

Seriously, here is a candidate Changelog (Loren will comment on it too):

Paolo Carlini <pcarlini@unitus.it>
Loren J. Rittle <ljrittle@acm.org>

        * include/bits/basic_string.h (basic_string::_Rep::__default_excess,
_S_excess_slop):
        Unused, remove.
        * include/bits/basic_string.tcc (basic_string::_Rep::_S_create): Do not grow
anymore
        the capacity one char at a time, align to page boundaries. Remove dead code.
        * include/bits/c++config: Remove comment.

Thank you!
Paolo.





More information about the Libstdc++ mailing list