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

Re-factor the LocalTilingPatternCache to cache by Ref rather than Name (PR 12458 follow-up, issue 13780) #13904

Merged

Conversation

Snuffleupagus
Copy link
Collaborator

This way there cannot be any incorrect cache hits, since Refs are guaranteed to be unique.
Please note that the reason for caching by Ref rather than doing something along the lines of the localShadingPatternCache (which uses a Map directly), is that TilingPatterns are streams and those cannot be cached on the XRef-instance (this way we avoid unnecessary parsing).

Fixes #13780

…ame (PR 12458 follow-up, issue 13780)

This way there cannot be any *incorrect* cache hits, since Refs are guaranteed to be unique.
Please note that the reason for caching by Ref rather than doing something along the lines of the `localShadingPatternCache` (which uses a `Map` directly), is that TilingPatterns are streams and those cannot be cached on the `XRef`-instance (this way we avoid unnecessary parsing).
@Snuffleupagus
Copy link
Collaborator Author

/botio test

@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/2ce2eff49cd3334/output.txt

@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/983ac6bf82091b2/output.txt

@pdfjsbot
Copy link

From: Bot.io (Linux m4)


Failed

Full output at http://54.67.70.0:8877/983ac6bf82091b2/output.txt

Total script time: 33.57 mins

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

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

@pdfjsbot
Copy link

From: Bot.io (Windows)


Failed

Full output at http://3.101.106.178:8877/2ce2eff49cd3334/output.txt

Total script time: 34.06 mins

  • Font tests: Passed
  • Unit tests: Passed
  • Integration Tests: Passed
  • Regression tests: FAILED
  errors: 585
  different ref/snapshot: 7

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

@timvandermeij timvandermeij merged commit 1b3382f into mozilla:master Aug 21, 2021
@timvandermeij
Copy link
Contributor

Looks good; thanks for improving this!

@Snuffleupagus Snuffleupagus deleted the fix-LocalTilingPatternCache branch August 21, 2021 15:15
This pull request was closed.
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.

Tiling pattern cache may incorrectly cache patterns with same name
3 participants