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

Add a GlobalColorSpaceCache to reduce unnecessary re-parsing #19583

Merged
merged 1 commit into from
Mar 1, 2025

Conversation

Snuffleupagus
Copy link
Collaborator

This complements the existing LocalColorSpaceCache, which is unique to each getOperatorList-invocation since it also caches by Name, which should help reduce unnecessary re-parsing especially for e.g. ICCBased ColorSpaces once we properly support those.

@Snuffleupagus Snuffleupagus force-pushed the GlobalColorSpaceCache branch 2 times, most recently from 7be942b to 61ab23d Compare February 28, 2025 19:18
@calixteman
Copy link
Contributor

Overall it looks good.
Do you think we should into account when a ref to a cs is used inside the definition of cs ?
Maybe not, I don't know, it can be just a corner case.

@Snuffleupagus
Copy link
Collaborator Author

Overall it looks good. Do you think we should into account when a ref to a cs is used inside the definition of cs ? Maybe not, I don't know, it can be just a corner case.

Perhaps, but I'd feel more comfortable if we didn't try that in this PR to reduce the risk of accidentally breaking something.
Hopefully this PR is already improving things, so perhaps we can re-evaluate later once the ICCBased stuff has landed?

@Snuffleupagus Snuffleupagus marked this pull request as ready for review February 28, 2025 22:49
@Snuffleupagus Snuffleupagus force-pushed the GlobalColorSpaceCache branch from 24207ae to 4c08c50 Compare March 1, 2025 12:38
@mozilla mozilla deleted a comment from moz-tools-bot Mar 1, 2025
@mozilla mozilla deleted a comment from moz-tools-bot Mar 1, 2025
@mozilla mozilla deleted a comment from moz-tools-bot Mar 1, 2025
@mozilla mozilla deleted a comment from moz-tools-bot Mar 1, 2025
@mozilla mozilla deleted a comment from moz-tools-bot Mar 1, 2025
@mozilla mozilla deleted a comment from moz-tools-bot Mar 1, 2025
@mozilla mozilla deleted a comment from moz-tools-bot Mar 1, 2025
@mozilla mozilla deleted a comment from moz-tools-bot Mar 1, 2025
@moz-tools-bot
Copy link
Collaborator

From: Bot.io (Linux m4)


Received

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

Live output at: http://54.241.84.105:8877/b5ed94537d942ee/output.txt

@moz-tools-bot
Copy link
Collaborator

From: Bot.io (Windows)


Received

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

Live output at: http://54.193.163.58:8877/418467d16af0778/output.txt

@moz-tools-bot
Copy link
Collaborator

From: Bot.io (Linux m4)


Success

Full output at http://54.241.84.105:8877/b5ed94537d942ee/output.txt

Total script time: 2.37 mins

  • Unit Tests: Passed

@moz-tools-bot
Copy link
Collaborator

From: Bot.io (Windows)


Success

Full output at http://54.193.163.58:8877/418467d16af0778/output.txt

Total script time: 7.80 mins

  • Unit Tests: Passed

@moz-tools-bot
Copy link
Collaborator

From: Bot.io (Windows)


Received

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

Live output at: http://54.193.163.58:8877/52fea2f185cc687/output.txt

@moz-tools-bot
Copy link
Collaborator

From: Bot.io (Linux m4)


Received

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

Live output at: http://54.241.84.105:8877/e4111273055d4c2/output.txt

@moz-tools-bot
Copy link
Collaborator

From: Bot.io (Linux m4)


Success

Full output at http://54.241.84.105:8877/e4111273055d4c2/output.txt

Total script time: 16.94 mins

  • Regression tests: Passed

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. Thank you.

This complements the existing `LocalColorSpaceCache`, which is unique to each `getOperatorList`-invocation since it also caches by `Name`, which should help reduce unnecessary re-parsing especially for e.g. `ICCBased` ColorSpaces once we properly support those.
@Snuffleupagus Snuffleupagus force-pushed the GlobalColorSpaceCache branch from 4c08c50 to 4be7974 Compare March 1, 2025 13:21
@moz-tools-bot
Copy link
Collaborator

From: Bot.io (Windows)


Success

Full output at http://54.193.163.58:8877/52fea2f185cc687/output.txt

Total script time: 30.64 mins

  • Regression tests: Passed

@Snuffleupagus Snuffleupagus merged commit 89ccc3a into mozilla:master Mar 1, 2025
9 checks passed
@Snuffleupagus Snuffleupagus deleted the GlobalColorSpaceCache branch March 1, 2025 13:24
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