This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: libstdc++: actually use BUFSIZE for basic_filebufs
- From: Paolo Carlini <paolo dot carlini at oracle dot com>
- To: Florian Weimer <fw at deneb dot enyo dot de>
- Cc: gcc-patches at gcc dot gnu dot org
- Date: Mon, 06 Jul 2009 16:13:03 +0200
- Subject: Re: libstdc++: actually use BUFSIZE for basic_filebufs
- References: <87ab3hq52l.fsf@mid.deneb.enyo.de>
Florian Weimer wrote:
> Comments? (I haven't yet run benchmarks to see if this has indeed an
> effect on run time, but I'd think so.)
>
Not having looked at all into the substance of the issue, unfortunately
I don't think anything similar can be done at this stage without
breaking the binary compatibility in the wide sense which we are doing
our best to maintain: the size of the basic_filbuf object would change.
If you are wondering how I can reply so quickly ;) it's because at some
point I wanted to just avoid the use of BUFSIZ, because that would allow
us to avoid including large C headers as an implementation detail, and
decided to give up for the time being, exactly because of the above...
By the way, do you have any idea, which is the actual performance impact
of the annoying glitch?
Paolo.