stdcxx-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Travis Vitek (JIRA)" <j...@apache.org>
Subject [jira] Created: (STDCXX-907) messages<charT>::do_get() inefficiency requires unnecessary locking
Date Sat, 03 May 2008 00:58:55 GMT
messages<charT>::do_get() inefficiency requires unnecessary locking
-------------------------------------------------------------------

                 Key: STDCXX-907
                 URL: https://issues.apache.org/jira/browse/STDCXX-907
             Project: C++ Standard Library
          Issue Type: Bug
          Components: 22. Localization
    Affects Versions: 4.2.1
            Reporter: Travis Vitek
            Priority: Minor
             Fix For: 4.3


The _STD::messages<T>::do_get() method might actually call __rw_manage_cat_data() up
to three times to access the cache. Since each access involves a mutex lock, there are going
to be some wasted cycles. It would be nice to reduce this to one access. Perhaps the _RW::__rw_get_message()
function could be changed to fill in a pointer to the _STD::locale that is kept in the cache
and the _RW::__rw_get_locale() function could be removed.

-- 
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