-
Notifications
You must be signed in to change notification settings - Fork 10.1k
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
[api-minor] Simplify how the list of points are structured #18163
Conversation
/botio test |
From: Bot.io (Linux m4)ReceivedCommand cmd_test from @calixteman received. Current queue size: 0 Live output at: http://54.241.84.105:8877/10e5dd63bf23fe4/output.txt |
From: Bot.io (Windows)ReceivedCommand cmd_test from @calixteman received. Current queue size: 0 Live output at: http://54.193.163.58:8877/3b67265eba93c9e/output.txt |
From: Bot.io (Windows)FailedFull output at http://54.193.163.58:8877/3b67265eba93c9e/output.txt Total script time: 2.90 mins
Image differences available at: http://54.193.163.58:8877/3b67265eba93c9e/reftest-analyzer.html#web=eq.log |
/botio-windows test |
From: Bot.io (Windows)ReceivedCommand cmd_test from @calixteman received. Current queue size: 0 Live output at: http://54.193.163.58:8877/384ec49f12783b3/output.txt |
From: Bot.io (Linux m4)FailedFull output at http://54.241.84.105:8877/10e5dd63bf23fe4/output.txt Total script time: 27.78 mins
Image differences available at: http://54.241.84.105:8877/10e5dd63bf23fe4/reftest-analyzer.html#web=eq.log |
From: Bot.io (Windows)FailedFull output at http://54.193.163.58:8877/384ec49f12783b3/output.txt Total script time: 13.06 mins
Image differences available at: http://54.193.163.58:8877/384ec49f12783b3/reftest-analyzer.html#web=eq.log |
9213955
to
5b6aebb
Compare
/botio test |
From: Bot.io (Linux m4)ReceivedCommand cmd_test from @calixteman received. Current queue size: 0 Live output at: http://54.241.84.105:8877/9854630ec7de34d/output.txt |
From: Bot.io (Windows)ReceivedCommand cmd_test from @calixteman received. Current queue size: 0 Live output at: http://54.193.163.58:8877/78252ef7bea0fa7/output.txt |
From: Bot.io (Linux m4)FailedFull output at http://54.241.84.105:8877/9854630ec7de34d/output.txt Total script time: 27.78 mins
Image differences available at: http://54.241.84.105:8877/9854630ec7de34d/reftest-analyzer.html#web=eq.log |
/botio-windows test |
From: Bot.io (Windows)ReceivedCommand cmd_test from @calixteman received. Current queue size: 0 Live output at: http://54.193.163.58:8877/63baf1d26558a4f/output.txt |
From: Bot.io (Windows)FailedFull output at http://54.193.163.58:8877/63baf1d26558a4f/output.txt Total script time: 12.97 mins
Image differences available at: http://54.193.163.58:8877/63baf1d26558a4f/reftest-analyzer.html#web=eq.log |
Two questions:
|
5b6aebb
to
28455c9
Compare
I didn't expect the changes and their are due to the fact I chose to set the data in some pdf.js/src/display/annotation_layer.js Lines 535 to 539 in 17e09e5
So in last version of the patch I changed for |
/botio test |
From: Bot.io (Linux m4)ReceivedCommand cmd_test from @calixteman received. Current queue size: 1 Live output at: http://54.241.84.105:8877/d183f9007b0e2bf/output.txt |
From: Bot.io (Windows)ReceivedCommand cmd_test from @calixteman received. Current queue size: 0 Live output at: http://54.193.163.58:8877/6bfc227e0be2cc2/output.txt |
From: Bot.io (Linux m4)FailedFull output at http://54.241.84.105:8877/d183f9007b0e2bf/output.txt Total script time: 27.74 mins
Image differences available at: http://54.241.84.105:8877/d183f9007b0e2bf/reftest-analyzer.html#web=eq.log |
From: Bot.io (Windows)FailedFull output at http://54.193.163.58:8877/6bfc227e0be2cc2/output.txt Total script time: 60.00 mins |
/botio-windows test |
From: Bot.io (Windows)ReceivedCommand cmd_test from @calixteman received. Current queue size: 0 Live output at: http://54.193.163.58:8877/5e113b023186972/output.txt |
From: Bot.io (Windows)FailedFull output at http://54.193.163.58:8877/5e113b023186972/output.txt Total script time: 43.35 mins
Image differences available at: http://54.193.163.58:8877/5e113b023186972/reftest-analyzer.html#web=eq.log |
Interesting, thank you! |
Yes (thx for the tip: I didn't know |
Off the top of my head I cannot tell how much else that'd affect, so perhaps we shouldn't do that here. My untested idea was that we'd use pdf.js/src/display/annotation_layer.js Line 531 in 95a7de9
const [rectBlX, rectBlY, rectTrX, rectTrY] = this.data.rect.map(e => Math.fround(e)); |
Instead of sending to the main thread an array of Objects for a list of points (or quadpoints), we'll send just a basic float buffer. It should slightly improve performances (especially when cloning the data) and use slightly less memory.
28455c9
to
6fa98ac
Compare
/botio test |
From: Bot.io (Linux m4)ReceivedCommand cmd_test from @calixteman received. Current queue size: 0 Live output at: http://54.241.84.105:8877/f69f32419ae001b/output.txt |
From: Bot.io (Windows)ReceivedCommand cmd_test from @calixteman received. Current queue size: 0 Live output at: http://54.193.163.58:8877/8eada7f5d96d4af/output.txt |
From: Bot.io (Linux m4)FailedFull output at http://54.241.84.105:8877/f69f32419ae001b/output.txt Total script time: 27.96 mins
Image differences available at: http://54.241.84.105:8877/f69f32419ae001b/reftest-analyzer.html#web=eq.log |
From: Bot.io (Windows)FailedFull output at http://54.193.163.58:8877/8eada7f5d96d4af/output.txt Total script time: 41.07 mins
Image differences available at: http://54.193.163.58:8877/8eada7f5d96d4af/reftest-analyzer.html#web=eq.log |
There was a problem hiding this 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!
Given that this is the first |
Instead of sending to the main thread an array of Objects for a list of points (or quadpoints), we'll send just a basic float buffer.
It should slightly improve performances (especially when cloning the data) and use slightly less memory.