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

Improve jpx decoding by around 20% in enabling simd support when compiling OpenJPEG #17983

Merged
merged 1 commit into from
Apr 22, 2024

Conversation

calixteman
Copy link
Contributor

No description provided.

@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/368b8497d3f05d7/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/78c62b0b48068c7/output.txt

@moz-tools-bot
Copy link
Collaborator

From: Bot.io (Linux m4)


Failed

Full output at http://54.241.84.105:8877/78c62b0b48068c7/output.txt

Total script time: 26.90 mins

  • Unit tests: Passed
  • Integration Tests: Passed
  • Regression tests: FAILED
  different ref/snapshot: 18
  different first/second rendering: 2

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

@moz-tools-bot
Copy link
Collaborator

From: Bot.io (Windows)


Failed

Full output at http://54.193.163.58:8877/368b8497d3f05d7/output.txt

Total script time: 39.32 mins

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

Image differences available at: http://54.193.163.58:8877/368b8497d3f05d7/reftest-analyzer.html#web=eq.log

@Snuffleupagus
Copy link
Collaborator

Have you tested that the image decoder still works in Node.js environments with this change?

@calixteman
Copy link
Contributor Author

No I didn't.
I just ran: gulp image_decoders.
In node, I ran:

const { JpxImage } = await import("./build/image_decoders/pdf.image_decoders.mjs");
JpxImage.decode(new Uint8Array([0]));

and it complains because of the wrong format but the wasm loaded, so it should be ok.
My node version is 18.19.1.
If there's a risk to break something, shouldn't we have some tests ?

@Snuffleupagus
Copy link
Collaborator

If there's a risk to break something, shouldn't we have some tests ?

I just wanted to check that the SIMD-part didn't break anything (we probably don't need specific Node.js tests here).

Copy link
Collaborator

@Snuffleupagus Snuffleupagus left a comment

Choose a reason for hiding this comment

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

r=me, thank you!

@calixteman calixteman merged commit c22e64c into mozilla:master Apr 22, 2024
7 checks passed
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