diff options
author | Alon Zakai <azakai@google.com> | 2020-01-23 09:09:02 -0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-01-23 09:09:02 -0800 |
commit | d6d565505076581da85e2fc5044a697a8186abf9 (patch) | |
tree | 4d06c0c3fc39b89254a1228fbbe97735e4cad95b /third_party/llvm-project/include/llvm/ObjectYAML/DWARFYAML.h | |
parent | cfc581f7d3c629016aa382a7e915f8b0a955fb40 (diff) | |
download | binaryen-d6d565505076581da85e2fc5044a697a8186abf9.tar.gz binaryen-d6d565505076581da85e2fc5044a697a8186abf9.tar.bz2 binaryen-d6d565505076581da85e2fc5044a697a8186abf9.zip |
Initialize the LegalizeJSInterface vector once, not once in each function (#2614)
I missed this in the review of #2451 - this was doing quadratic
work, each function touched the entire array which is the size
of the functions.
This speeds up the pspdfkit testcase from the mailing list from
several minutes (15 on CI; I stopped measuring after 2 minutes
locally) to 5 seconds. I suspect this was not noticed earlier because
that testcase has a very large number of functions, which
hit this issue especially hard.
Diffstat (limited to 'third_party/llvm-project/include/llvm/ObjectYAML/DWARFYAML.h')
0 files changed, 0 insertions, 0 deletions