Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Initialize the LegalizeJSInterface vector once, not once in each func…
…tion (#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.
- Loading branch information