[llvm-bugs] [Bug 46600] New: Store per-thread copy of the global locale
via llvm-bugs
llvm-bugs at lists.llvm.org
Mon Jul 6 05:09:20 PDT 2020
https://bugs.llvm.org/show_bug.cgi?id=46600
Bug ID: 46600
Summary: Store per-thread copy of the global locale
Product: libc++
Version: unspecified
Hardware: PC
OS: Linux
Status: NEW
Severity: enhancement
Priority: P
Component: All Bugs
Assignee: unassignedclangbugs at nondot.org
Reporter: nickita.taranov at gmail.com
CC: llvm-bugs at lists.llvm.org, mclow.lists at gmail.com
That's not news that users of std::stringstream may suffer from the atomic
add_shared, release_shared (within ctor and dtor of std::locale) accompanying
each stringstream creation and deletion.
Though it is expected to be noticeable only on very heavy multicore servers I
personally saw an impact on performance of our service running on a machine
with 2 x INTEL Xeon E5-2660 v4.
So, this idea was discussed e.g here:
https://groups.google.com/a/isocpp.org/g/std-discussion/c/uLTjDh41sNM/m/QF-yWrB0BgAJ
.
And as far as I understood the only con is it will bring additional complexity
to the implementation.
So, may we get back to discussion of this enhancement?
--
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20200706/274c16dd/attachment.html>
More information about the llvm-bugs
mailing list