stdcxx-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Travis Vitek" <Travis.Vi...@roguewave.com>
Subject RE: svn commit: r649673 - /stdcxx/trunk/tests/localization/22.locale.num.get.mt.cpp
Date Fri, 18 Apr 2008 21:30:35 GMT
 

>
>Author: sebor
>Date: Fri Apr 18 13:04:21 2008
>New Revision: 649673
>
> 
>             nio.imbue (loc);
>-            nsb.pubsetg (data.ncs_, RW_COUNT_OF (data.ncs_));
>+            nsb.pubsetg (data.ncs_, Traits::length (data.ncs_));
>

Should we calculate the length once in the main thread and cache it?
Seems like this would save some cycles in each thread and increase
contention for any locks in the locale code.

Travis

Mime
View raw message