Issue Details (XML | Word | Printable)

Key: STDCXX-943
Type: Improvement Improvement
Status: Open Open
Priority: Minor Minor
Assignee: Unassigned
Reporter: Travis Vitek
Votes: 0
Watchers: 0
Operations

If you were logged in you would be able to see more operations.
C++ Standard Library

Inefficiency when retrieving strings from message catalog

Created: 21/May/08 08:22 PM   Updated: 21/May/08 08:25 PM
Return to search
Component/s: 22. Localization
Affects Version/s: 4.2.1
Fix Version/s: 4.3.0

Time Tracking:
Original Estimate: Not Specified
Remaining Estimate: 0h
Time Spent - 2h
Time Spent: 2h
Time Spent - 2h

File Attachments:
  Size
Text File Licensed for inclusion in ASF works stdcxx-943.patch 2008-05-21 08:23 PM Travis Vitek 3 kB

Patch Info: Patch Available
Severity: Inefficiency


 Description  « Hide
A single call to _STD::messages<T>::do_get() can call __rw_manage_cat_data() up to three times. Since each call involves a mutex lock/unlock, there are going to be some wasted cycles. It would be nice to reduce this to one call. Perhaps the _RW::__rw_get_message() function could be changed to fill in a pointer to the _STD::__rw_locale that is kept in the cache and the _RW::__rw_get_locale() function could be removed.

For binary compatibility reasons, we may need to add an overload of _RW::__rw_get_message and deprecate the other functions so that they are removed automagically in the next major release.



 All   Comments   Work Log   Change History   Subversion Commits      Sort Order: Ascending order - Click to sort in descending order
There are no subversion log entries for this issue yet.