Remove the IR (internal representation) part of the PDFFunction
parsing
#13754
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Remove the IR (internal representation) part of the
PDFFunction
parsingThis follows the exact same princial as PR Remove the IR (internal representation) part of the ColorSpace parsing #12083, but for the
PDFFunction
parsing instead.Given that the IR format is completely unused now, all that the current code does is add a bunch of unnecessary indirection/overhead to the handling of PDF-functions.
Convert
PDFFunction
to a standard class withstatic
methodsFor e.g.
gulp mozcentral
, the builtpdf.worker.js
file decreases from1 837 608
to1 834 907
bytes with this patch-series.The improvement comes first of all from less overall indentation in
PDFFunction
, and secondly from the removal of (now) unnecessary indirection in the code.