This is the mail archive of the libstdc++@gcc.gnu.org mailing list for the libstdc++ project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [v3] speedup numpunct cache a bit


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]