From dev-return-8652-apmail-stdcxx-dev-archive=stdcxx.apache.org@stdcxx.apache.org Fri Sep 7 02:59:23 2012 Return-Path: X-Original-To: apmail-stdcxx-dev-archive@www.apache.org Delivered-To: apmail-stdcxx-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id E379FD859 for ; Fri, 7 Sep 2012 02:59:22 +0000 (UTC) Received: (qmail 1839 invoked by uid 500); 7 Sep 2012 02:59:22 -0000 Delivered-To: apmail-stdcxx-dev-archive@stdcxx.apache.org Received: (qmail 1797 invoked by uid 500); 7 Sep 2012 02:59:22 -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 1788 invoked by uid 99); 7 Sep 2012 02:59:22 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 07 Sep 2012 02:59:22 +0000 X-ASF-Spam-Status: No, hits=-0.7 required=5.0 tests=RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of stefan.teleman@gmail.com designates 209.85.212.54 as permitted sender) Received: from [209.85.212.54] (HELO mail-vb0-f54.google.com) (209.85.212.54) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 07 Sep 2012 02:59:16 +0000 Received: by vbmv11 with SMTP id v11so2539805vbm.41 for ; Thu, 06 Sep 2012 19:58:55 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; bh=2BElMFewSlhd2RwHiN4HRckEv49n5a1RLbLTNz9rdTo=; b=OEarOHU4Olj2u0a3z41uZLiWUWriGL3Yjw30y2XzNM3cdmBVWdyWJwLzuIkcH1paOT mWbJotui8ll4a35YYY07ofb0/8L6YtKeCRyNuRYoLEkD8iD+qnPuomLwybpDO9Kmdcc6 yWUQvGDu8VLbStyQDGsRgba4r+/mkw8Dm/eiPgJhicPFFaoDFrr8v91XbeXK5kzSAkc3 o0Poe//NLw4X4S8P2IQ2hIDUGVqOgQ1WNtrgt911k75+/4aCv5KcEIYBJr9Z8S9LWZtz 99rv8Jqqb2Iv8oOXVQfSTacWzn/iW7EqBJk2844H8eAJTOkC3I3Np6z0JyHLnTFNQOiG UDXg== MIME-Version: 1.0 Received: by 10.221.0.78 with SMTP id nl14mr5256662vcb.21.1346986735521; Thu, 06 Sep 2012 19:58:55 -0700 (PDT) Received: by 10.58.29.164 with HTTP; Thu, 6 Sep 2012 19:58:55 -0700 (PDT) In-Reply-To: References: <40394653-8FCC-4D04-A108-2C650AF8F95B@hates.ms> <5045E764.9090607@hates.ms> <595887D2-6E42-4BC4-AF69-085AE4BA8A7D@hates.ms> <5046BDC1.3020400@gmail.com> <50476748.9040301@gmail.com> <50479CA6.8010306@hates.ms> <5047A561.5050606@gmail.com> <5047A926.7070308@hates.ms> <5047B01E.2060506@gmail.com> Date: Thu, 6 Sep 2012 22:58:55 -0400 Message-ID: Subject: Re: STDCXX-1056 [was: Re: STDCXX forks] From: Stefan Teleman To: dev@stdcxx.apache.org Content-Type: text/plain; charset=UTF-8 On Thu, Sep 6, 2012 at 7:31 PM, Liviu Nicoara wrote: > There would be a performance degradation. IMHO, it would be minor and would simplify the code considerably. > > After finally being able to reproduce the defect with SunPro 12.3 on x86_64 I tried to remove the lazy initialization and a (smaller) test case now passes. I am attaching the program and the numpunct patch. With your patches, the performance is much much better: # INFO (S1) (10 lines): # TEXT: # COMPILER: Intel C++, __INTEL_COMPILER = 1210, __INTEL_COMPILER_BUILD_DATE = 20111011, __EDG_VERSION__ = 403 # ENVIRONMENT: pentiumpro running linux-elf (Fedora release 17 (Beefy Miracle) (3.5.0-2.fc17.x86_64)) with glibc 2.15 # FILE: 22.locale.numpunct.mt.cpp # COMPILED: Sep 6 2012, 20:50:13 # COMMENT: thread safety ############################################################ # +-----------------------+----------+----------+----------+ # | DIAGNOSTIC | ACTIVE | TOTAL | INACTIVE | # +-----------------------+----------+----------+----------+ # | (S1) INFO | 11 | 11 | 0% | # | (S2) NOTE | 1 | 1 | 0% | # | (S8) ERROR | 0 | 3 | 100% | # | (S9) FATAL | 0 | 1 | 100% | # +-----------------------+----------+----------+----------+ real 1035.05 user 1191.76 sys 63.49 --Stefan -- Stefan Teleman KDE e.V. stefan.teleman@gmail.com