[Lldb-commits] [PATCH] D13652: Change ConstString to support massive multi-threaded access

Tamas Berghammer via lldb-commits lldb-commits at lists.llvm.org
Mon Oct 12 07:33:57 PDT 2015


tberghammer created this revision.
tberghammer added reviewers: labath, clayborg.
tberghammer added a subscriber: lldb-commits.

Change ConstString to support massive multi-threaded access

Previously ConstString had a single mutex guarding the global string
pool for each access what become a bottleneck when using it with a
large number of threads.

This CL distributes the strings to 256 individual string pools based on
a simple hash function to eliminate the bottleneck and speed up the
multi-thread access.

The goal of the change is to prepare to multi-threaded symbol parsing code
to speed up the symbol parsing speed.

http://reviews.llvm.org/D13652

Files:
  source/Core/ConstString.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D13652.37109.patch
Type: text/x-patch
Size: 6288 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/lldb-commits/attachments/20151012/d9ddc610/attachment.bin>


More information about the lldb-commits mailing list