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

Optimize save-transform-constructPath-restore #19712

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

calixteman
Copy link
Contributor

The 4 operations can be replaced with just one in applying the transform to the points coordinates.

@calixteman
Copy link
Contributor Author

/botio test

@moz-tools-bot
Copy link
Collaborator

From: Bot.io (Windows)


Received

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

Live output at: http://54.193.163.58:8877/080fffefa04d659/output.txt

@moz-tools-bot
Copy link
Collaborator

From: Bot.io (Linux m4)


Received

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

Live output at: http://54.241.84.105:8877/0b06274035d985b/output.txt

@moz-tools-bot
Copy link
Collaborator

From: Bot.io (Linux m4)


Failed

Full output at http://54.241.84.105:8877/0b06274035d985b/output.txt

Total script time: 29.95 mins

  • Unit tests: Passed
  • Integration Tests: FAILED
  • Regression tests: FAILED
  different ref/snapshot: 60

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

@Snuffleupagus
Copy link
Collaborator

  • Even though the changes look imperceivable to the naked eye, do we expect movement in "so many" cases simply from a different chunking of the path rendering operators?
  • Any examples of PDFs where this help improve performance, and perhaps also some benchmarking results for this patch?

@calixteman
Copy link
Contributor Author

The "improvement" was a way better when the patch was merging similar constructPath, but as mentioned in general it doesn't work. That said if we're able to know in the worker, that we aren't composing, then we should be able to do something better.
So about the current patch, it mainly helps to remove useless operations.
For example, with issue17779.pdf, on Windows 11, it helps to win ~0.8s when the overall rendering takes 18s:

The 4 operations can be replaced with just one in applying the transform to the points coordinates.
@calixteman calixteman force-pushed the optimize_save_construct branch from 282bbb3 to 6146e5f Compare March 25, 2025 14:31
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.

3 participants