Skip to content

Convert the /Indexed palette in a single base color space call#21637

Open
calixteman wants to merge 1 commit into
mozilla:masterfrom
calixteman:perf/indexed-cs-palette-lookup
Open

Convert the /Indexed palette in a single base color space call#21637
calixteman wants to merge 1 commit into
mozilla:masterfrom
calixteman:perf/indexed-cs-palette-lookup

Conversation

@calixteman

Copy link
Copy Markdown
Contributor

IndexedCS invoked the base color space once per palette entry, which is cheap for e.g. DeviceRgbCS but not for IccColorSpace where every call is a Wasm round-trip.

`IndexedCS` invoked the base color space once per palette entry, which is
cheap for e.g. `DeviceRgbCS` but not for `IccColorSpace` where every call
is a Wasm round-trip.
@calixteman
calixteman requested a review from timvandermeij July 25, 2026 19:09
@codecov-commenter

codecov-commenter commented Jul 25, 2026

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 95.00000% with 1 line in your changes missing coverage. Please review.
✅ Project coverage is 89.85%. Comparing base (05e100c) to head (322aa4d).

Files with missing lines Patch % Lines
src/core/colorspace.js 95.00% 1 Missing ⚠️
Additional details and impacted files
@@           Coverage Diff           @@
##           master   #21637   +/-   ##
=======================================
  Coverage   89.84%   89.85%           
=======================================
  Files         263      263           
  Lines       66811    66816    +5     
=======================================
+ Hits        60029    60036    +7     
+ Misses       6782     6780    -2     
Flag Coverage Δ
browsertest 66.50% <95.00%> (-0.03%) ⬇️
fonttest 9.05% <0.00%> (-0.01%) ⬇️
integrationtest 69.25% <70.00%> (-0.01%) ⬇️
unittest 57.51% <95.00%> (+0.01%) ⬆️
unittestcli 56.48% <95.00%> (-0.02%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

Comment thread src/core/colorspace.js

constructor(base, highVal, lookup) {
super("Indexed", 1);
this.base = base;

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Nit: This line might no longer be needed now?

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