On Fri, Feb 16, 2001 at 01:41:43PM +0100, Bernd Harmsen wrote:
> On Thu, Feb 15, 2001 at 04:50:18PM +0200, Dekel Tsur wrote:
> > The lyxsum.C I sent you didn't contain any fix. Is purpose was to measure
> > the time spent in lyx::sum. Please send the result you get (on stdout).
> 
> Ok, here is it. If you need more information about the system or libraries,
> please ask.

Bernd's problem is that the line "ostr << ifs.rdbuf();" in lyx::sum takes ~260
seconds to read UserGuide.tex (he used gcc-2.95.3/libstdc++2.10-glibc2.2
with HAVE_SSTREAM defined). This seems like a libstdc++ bug.

However, on my machine (libstdc++2.9/gcc-2.91.66 with HAVE_SSTREAM undefined)
The line "ostr << ifs.rdbuf();" takes 0.17 seconds for UserGuide.tex, while
the old code (that used ostrstream) took 0.03.
So maybe we should use ostrstream again, until compilers get better.

Reply via email to