Return-Path: Delivered-To: apmail-stdcxx-dev-archive@www.apache.org Received: (qmail 52215 invoked from network); 18 Apr 2008 21:31:18 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 18 Apr 2008 21:31:18 -0000 Received: (qmail 99309 invoked by uid 500); 18 Apr 2008 21:31:19 -0000 Delivered-To: apmail-stdcxx-dev-archive@stdcxx.apache.org Received: (qmail 99289 invoked by uid 500); 18 Apr 2008 21:31:19 -0000 Mailing-List: contact dev-help@stdcxx.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@stdcxx.apache.org Delivered-To: mailing list dev@stdcxx.apache.org Received: (qmail 99280 invoked by uid 99); 18 Apr 2008 21:31:19 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 18 Apr 2008 14:31:19 -0700 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: local policy) Received: from [208.30.140.160] (HELO moroha.roguewave.com) (208.30.140.160) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 18 Apr 2008 21:30:28 +0000 Received: from exchmail01.Blue.Roguewave.Com (exchmail01.blue.roguewave.com [10.22.129.22]) by moroha.roguewave.com (8.13.6/8.13.6) with ESMTP id m3ILUlxp028738 for ; Fri, 18 Apr 2008 21:30:47 GMT X-MimeOLE: Produced By Microsoft Exchange V6.5 Content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: quoted-printable Subject: RE: svn commit: r649673 - /stdcxx/trunk/tests/localization/22.locale.num.get.mt.cpp Date: Fri, 18 Apr 2008 15:30:35 -0600 Message-ID: X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: svn commit: r649673 - /stdcxx/trunk/tests/localization/22.locale.num.get.mt.cpp Thread-Index: Acihj5lhUl7vTDFaS121kTBiMmIjdgAC5Bjg References: <20080418200424.3A3861A9832@eris.apache.org> From: "Travis Vitek" To: X-Virus-Checked: Checked by ClamAV on apache.org =20 > >Author: sebor >Date: Fri Apr 18 13:04:21 2008 >New Revision: 649673 > >=20 > 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