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

Immediately release the temporary Uint8Arrays used during Type3-compilation #14866

Merged

Conversation

Snuffleupagus
Copy link
Collaborator

Given that the compileType3Glyph function returns a function, see drawOutline, we'll thus keep the surrounding scope alive. Hence it shouldn't hurt to explicitly mark the temporary Uint8Arrays, used during parsing, as no longer needed. Given the current MAX_SIZE_TO_COMPILE-value these Uint8Arrays may be approximately two mega-bytes large for every Type3-glyph.

…pilation

Given that the `compileType3Glyph` function *returns* a function, see `drawOutline`, we'll thus keep the surrounding scope alive. Hence it shouldn't hurt to *explicitly* mark the temporary `Uint8Array`s, used during parsing, as no longer needed. Given the current `MAX_SIZE_TO_COMPILE`-value these `Uint8Array`s may be approximately two mega-bytes large *for every* Type3-glyph.
@Snuffleupagus
Copy link
Collaborator Author

/botio test

@pdfjsbot
Copy link

pdfjsbot commented May 2, 2022

From: Bot.io (Linux m4)


Received

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

Live output at: http://54.241.84.105:8877/341bdfa7f26d4c9/output.txt

@pdfjsbot
Copy link

pdfjsbot commented May 2, 2022

From: Bot.io (Windows)


Received

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

Live output at: http://54.193.163.58:8877/483c3971ac3485f/output.txt

@pdfjsbot
Copy link

pdfjsbot commented May 2, 2022

From: Bot.io (Windows)


Success

Full output at http://54.193.163.58:8877/483c3971ac3485f/output.txt

Total script time: 26.58 mins

  • Font tests: Passed
  • Unit tests: Passed
  • Integration Tests: Passed
  • Regression tests: Passed

@pdfjsbot
Copy link

pdfjsbot commented May 2, 2022

From: Bot.io (Linux m4)


Failed

Full output at http://54.241.84.105:8877/341bdfa7f26d4c9/output.txt

Total script time: 27.28 mins

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

Image differences available at: http://54.241.84.105:8877/341bdfa7f26d4c9/reftest-analyzer.html#web=eq.log

Copy link
Contributor

@calixteman calixteman left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM.

@Snuffleupagus Snuffleupagus merged commit da4f7df into mozilla:master May 2, 2022
@Snuffleupagus Snuffleupagus deleted the Type3-release-Uint8Arrays branch May 2, 2022 13:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants