This is the mail archive of the
libstdc++@gcc.gnu.org
mailing list for the libstdc++ project.
Re: [v3] speedup numpunct cache a bit
- From: Nathan Myers <ncm-nospam at cantrip dot org>
- To: libstdc++ at gcc dot gnu dot org
- Date: Fri, 27 Jun 2003 20:26:39 -0700
- Subject: Re: [v3] speedup numpunct cache a bit
- References: <16124.65418.192605.26388@gargle.gargle.HOWL>
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