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

Use ImageDecoder in order to decode jpeg images (bug 1901223) #18910

Merged
merged 1 commit into from
Oct 23, 2024

Conversation

calixteman
Copy link
Contributor

No description provided.

@calixteman
Copy link
Contributor Author

/botio-linux preview

@moz-tools-bot
Copy link
Collaborator

From: Bot.io (Linux m4)


Received

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

Live output at: http://54.241.84.105:8877/9df91481031c406/output.txt

@moz-tools-bot
Copy link
Collaborator

From: Bot.io (Linux m4)


Success

Full output at http://54.241.84.105:8877/9df91481031c406/output.txt

Total script time: 1.02 mins

Published

@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/f4647d2af2a6fc2/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/2466bf4356a4fe9/output.txt

@moz-tools-bot
Copy link
Collaborator

From: Bot.io (Linux m4)


Failed

Full output at http://54.241.84.105:8877/2466bf4356a4fe9/output.txt

Total script time: 29.72 mins

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

Image differences available at: http://54.241.84.105:8877/2466bf4356a4fe9/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/f4647d2af2a6fc2/output.txt

Total script time: 37.97 mins

  • Unit tests: Passed
  • Integration Tests: Passed
  • Regression tests: FAILED
  errors: 706
  different ref/snapshot: 200

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

@Snuffleupagus
Copy link
Collaborator

  1. Do you have benchmarking results that show (clear) improvements with this patch?

  2. Unfortunately there's failures on both bots, since the logs contain:

    TEST-UNEXPECTED-FAIL | test failed firefox has not responded in 120s
    

@calixteman
Copy link
Contributor Author

2. Unfortunately there's failures on both bots, since the logs contain:

Oh I think I need to update Firefox to take into account the patch made to avoid this timeout.

@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/c0d695913cfc321/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/bf1cac04462dee5/output.txt

@calixteman
Copy link
Contributor Author

  1. Do you have benchmarking results that show (clear) improvements with this patch?

With the pdf in #18307, the time to render drops from ~120s to ~20s !
Of for pdf with a single jpeg image with normal dimensions, the win isn't so important because we've some overhead due the ImageDecoder stuff.
That said, I checked several normal pdfs and the improvement is between 20% and 100%, it depends of the image.

@moz-tools-bot
Copy link
Collaborator

From: Bot.io (Linux m4)


Failed

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

Total script time: 33.02 mins

  • Unit tests: Passed
  • Integration Tests: Passed
  • Regression tests: FAILED
  errors: 17
  different ref/snapshot: 658
  different first/second rendering: 1

Image differences available at: http://54.241.84.105:8877/bf1cac04462dee5/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/c0d695913cfc321/output.txt

Total script time: 51.11 mins

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

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

@Snuffleupagus
Copy link
Collaborator

Before I review this, can you please confirm that you've looked through all ref-test results without finding any obvious regressions?

@calixteman
Copy link
Contributor Author

Before I review this, can you please confirm that you've looked through all ref-test results without finding any obvious regressions?

Yep, I checked the results locally and on the bots and there's nothing obviously wrong.

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, with a few minor (stylistic) comments; thank you.

src/core/image.js Outdated Show resolved Hide resolved
src/core/jpeg_stream.js Outdated Show resolved Hide resolved
src/core/jpg.js Outdated Show resolved Hide resolved
src/core/jpg.js Outdated Show resolved Hide resolved
src/core/jpg.js Outdated Show resolved Hide resolved
@calixteman
Copy link
Contributor Author

/botio test

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

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

@moz-tools-bot
Copy link
Collaborator

From: Bot.io (Linux m4)


Failed

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

Total script time: 32.07 mins

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

Image differences available at: http://54.241.84.105:8877/e3fb1cc3dcd0aef/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/bb47fa20df17688/output.txt

Total script time: 51.93 mins

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

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

@calixteman calixteman merged commit 1ad0977 into mozilla:master Oct 23, 2024
10 checks passed
@calixteman
Copy link
Contributor Author

/botio makeref

@moz-tools-bot
Copy link
Collaborator

From: Bot.io (Linux m4)


Received

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

Live output at: http://54.241.84.105:8877/66d880079831007/output.txt

@moz-tools-bot
Copy link
Collaborator

From: Bot.io (Windows)


Received

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

Live output at: http://54.193.163.58:8877/f681a21eba32e28/output.txt

@moz-tools-bot
Copy link
Collaborator

From: Bot.io (Linux m4)


Failed

Full output at http://54.241.84.105:8877/66d880079831007/output.txt

Total script time: 21.33 mins

  • Make references: FAILED

@calixteman
Copy link
Contributor Author

I missed the Chrome timeout issue on linux bot...

@moz-tools-bot
Copy link
Collaborator

From: Bot.io (Windows)


Success

Full output at http://54.193.163.58:8877/f681a21eba32e28/output.txt

Total script time: 29.05 mins

  • Make references: Passed
  • Check references: Passed

@Snuffleupagus
Copy link
Collaborator

I missed the Chrome timeout issue on linux bot...

That shouldn't be related to this PR though, since it's been happening intermittently for maybe a week and is mentioned in #18928 (comment).

@calixteman
Copy link
Contributor Author

The guilty pdf takes around 20s to render on Windows with Chrome so 2min seems to be a bit exaggerated: I'll have a look on it.

@calixteman
Copy link
Contributor Author

/botio-linux makeref

@moz-tools-bot
Copy link
Collaborator

From: Bot.io (Linux m4)


Received

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

Live output at: http://54.241.84.105:8877/839003a42e6c9c8/output.txt

@moz-tools-bot
Copy link
Collaborator

From: Bot.io (Linux m4)


Success

Full output at http://54.241.84.105:8877/839003a42e6c9c8/output.txt

Total script time: 20.53 mins

  • Make references: Passed
  • Check references: Passed

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
4 participants