diff options
author | Thomas Lively <7121787+tlively@users.noreply.github.com> | 2020-04-09 17:42:36 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-04-09 17:42:36 -0700 |
commit | 1b56c2b341e838656adca9a7101d824ed757d6ad (patch) | |
tree | da49e1f8d2b8d48628783b25229681d23d266beb /src/passes/pass.cpp | |
parent | c2760038591df9e67b49bb71c9aedb70eadb5b11 (diff) | |
download | binaryen-1b56c2b341e838656adca9a7101d824ed757d6ad.tar.gz binaryen-1b56c2b341e838656adca9a7101d824ed757d6ad.tar.bz2 binaryen-1b56c2b341e838656adca9a7101d824ed757d6ad.zip |
Optimize uint32_t Type constructor (#2744)
Avoid taking the type interning lock to look up the size when the
provided ID corresponds to a statically known type. This eliminates a
considerable amount of unnecessary lock traffic when using the C or JS
APIs.
Diffstat (limited to 'src/passes/pass.cpp')
0 files changed, 0 insertions, 0 deletions