Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove the IR (internal representation) part of the PDFFunction parsing #13754

Merged
merged 2 commits into from
Jul 18, 2021

Conversation

Snuffleupagus
Copy link
Collaborator

  • Remove the IR (internal representation) part of the PDFFunction parsing

    This 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 with static methods

    For e.g. gulp mozcentral, the built pdf.worker.js file decreases from 1 837 608 to 1 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.

…sing

*This follows the exact same princial as PR 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.
For e.g. `gulp mozcentral`, the *built* `pdf.worker.js` file decreases from `1 837 608` to `1 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.
@Snuffleupagus
Copy link
Collaborator Author

/botio test

@pdfjsbot
Copy link

From: Bot.io (Linux m4)


Received

Command cmd_test from @Snuffleupagus received. Current queue size: 0

Live output at: http://54.67.70.0:8877/a231c8766f327d3/output.txt

@pdfjsbot
Copy link

From: Bot.io (Windows)


Received

Command cmd_test from @Snuffleupagus received. Current queue size: 0

Live output at: http://3.101.106.178:8877/5e74bb335ca11a7/output.txt

@pdfjsbot
Copy link

From: Bot.io (Linux m4)


Failed

Full output at http://54.67.70.0:8877/a231c8766f327d3/output.txt

Total script time: 32.42 mins

  • Font tests: Passed
  • Unit tests: Passed
  • Integration Tests: Passed
  • Regression tests: FAILED
  different ref/snapshot: 7
  different first/second rendering: 1

Image differences available at: http://54.67.70.0:8877/a231c8766f327d3/reftest-analyzer.html#web=eq.log

@pdfjsbot
Copy link

From: Bot.io (Windows)


Failed

Full output at http://3.101.106.178:8877/5e74bb335ca11a7/output.txt

Total script time: 37.48 mins

  • Font tests: Passed
  • Unit tests: Passed
  • Integration Tests: Passed
  • Regression tests: FAILED
  different ref/snapshot: 8
  different first/second rendering: 1

Image differences available at: http://3.101.106.178:8877/5e74bb335ca11a7/reftest-analyzer.html#web=eq.log

@timvandermeij timvandermeij merged commit e04386c into mozilla:master Jul 18, 2021
@timvandermeij
Copy link
Contributor

Much simpler; thanks!

@Snuffleupagus Snuffleupagus deleted the refactor-PDFFunction branch July 18, 2021 13:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants