stdcxx-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Martin Sebor (JIRA)" <>
Subject [jira] Created: (STDCXX-914) sstream ctors inefficient in reentrant modes
Date Wed, 07 May 2008 04:09:55 GMT
sstream ctors inefficient in reentrant modes

                 Key: STDCXX-914
             Project: C++ Standard Library
          Issue Type: Improvement
          Components: 27. Input/Output
    Affects Versions: 4.2.1, 4.2.0, 4.1.4, 4.1.3, 4.1.2
            Reporter: Martin Sebor
            Priority: Critical
             Fix For: 4.2.2

As discussed in this [thread|] 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.

View raw message