summaryrefslogtreecommitdiff
path: root/check.py
diff options
context:
space:
mode:
authorAlon Zakai <alonzakai@gmail.com>2017-05-16 16:35:12 -0700
committerGitHub <noreply@github.com>2017-05-16 16:35:12 -0700
commit6331e094380bc538cc7dcd5a716968b764939f81 (patch)
tree9b6974af153f404f20d4c49e9eb27a5055406b7f /check.py
parent77802a63e5814bcde5ac9af3f4694507d8bae9e9 (diff)
downloadbinaryen-6331e094380bc538cc7dcd5a716968b764939f81.tar.gz
binaryen-6331e094380bc538cc7dcd5a716968b764939f81.tar.bz2
binaryen-6331e094380bc538cc7dcd5a716968b764939f81.zip
Parallelize istring creation (#1008)
* parallelize istring creation, by having a thread-local set and a global set guarded by a mutex. each time a new string shows up in a thread, it will be added to that thread's set, after accessing the global set through the lock first, which means we lock at most once per new string per thread * don't leak strings in istring store * since we now create names in a parallel thread-safe manner, we don't need to pre-create names in RelooperJumpThreading
Diffstat (limited to 'check.py')
0 files changed, 0 insertions, 0 deletions