stdcxx-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Martin Sebor (JIRA)" <j...@apache.org>
Subject [jira] Issue Comment Edited: (STDCXX-914) sstream ctors inefficient in reentrant modes
Date Sat, 08 Nov 2008 18:04:47 GMT

    [ https://issues.apache.org/jira/browse/STDCXX-914?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12646011#action_12646011
] 

sebor edited comment on STDCXX-914 at 11/8/08 10:04 AM:
---------------------------------------------------------------

Attached output of gprof for the head of trunk compiled with gcc 4.3.0 in 12S build type.

      was (Author: sebor):
    Output of gprof for the head of trunk compiled with gcc 4.3.0 in 12S build type.
  
> sstream ctors inefficient in reentrant modes
> --------------------------------------------
>
>                 Key: STDCXX-914
>                 URL: https://issues.apache.org/jira/browse/STDCXX-914
>             Project: C++ Standard Library
>          Issue Type: Improvement
>          Components: 27. Input/Output
>    Affects Versions: 4.1.2, 4.1.3, 4.1.4, 4.2.0, 4.2.1
>            Reporter: Martin Sebor
>            Priority: Critical
>             Fix For: 4.2.2
>
>         Attachments: stdcxx-914-gprof-gcc-4.3.0-12S.txt, stdcxx-914.gprof
>
>   Original Estimate: 12h
>          Time Spent: 1h
>  Remaining Estimate: 11h
>
> As discussed in this [thread|http://markmail.org/message/hqlsw5dq23gx7d4o] stream ctors
in thread-safe builds are inefficient due to the initialization of the mutex data member in
every stream, even in those that never use it. As soon as binary compatibility rules permit
it we should remove the mutex and/or defer its initialization until it's needed. It might
be possible to implement the deferred initialization as early as 4.2.2, or maybe 4.3. Complete
removal will need to wait until 5.0.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


Mime
View raw message