[v3] speedup numpunct cache a bit
Nathan Myers
ncm-nospam@cantrip.org
Sat Jun 28 03:26:00 GMT 2003
On Fri, Jun 27, 2003 at 10:38:02PM -0400, Jerry Quinn wrote:
> This moves the code for __use_cache<numpunct> to locale_facets.tcc.
> It shaves about 2% off testsuite/performance/ofstream_insert_float.cc
> from 4.15s down to 4.0s. gcc 2.95 gives 3.6s at -O2, so we're getting
> closer.
Making it inline is a wondrous thing, but all inlines must go in
".h" files. Everything in a .tcc file is supposed to be able to
be declared "export" and not need to be seen at instantiation time,
meaning (mainly) no public class declarations and no inlines.
This might not have been explained anywhere that you would have
been likely to encounter.
Nathan Myers
ncm-nospam@cantrip.org
More information about the Libstdc++
mailing list