diff options
author | Alon Zakai <azakai@google.com> | 2022-01-14 08:49:19 -0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-01-14 08:49:19 -0800 |
commit | 6cb41eca43b8a6045b0138545c6b4fcdfcf4448a (patch) | |
tree | f2d3c76265912347a933039056b1ba39c7077954 /src/literal.h | |
parent | 993ea84f82c2baf6cd4f7d397b5270715d8e0d6c (diff) | |
download | binaryen-6cb41eca43b8a6045b0138545c6b4fcdfcf4448a.tar.gz binaryen-6cb41eca43b8a6045b0138545c6b4fcdfcf4448a.tar.bz2 binaryen-6cb41eca43b8a6045b0138545c6b4fcdfcf4448a.zip |
Optimize Literal constructors and destructor (#4456)
Handle the isBasic() case first - that inlined function is very fast to call,
and it is the common case. Also, do not do unnecessary work there: just
write out what we need, instead of always doing a memcpy of 16 bytes.
This makes us over 2x faster on the benchmark in #4452
Diffstat (limited to 'src/literal.h')
0 files changed, 0 insertions, 0 deletions