-
Notifications
You must be signed in to change notification settings - Fork 10.5k
Store ops bboxes in a linear Uint8Array #20208
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
Conversation
4430595
to
46b601d
Compare
/botio test |
From: Bot.io (Linux m4)ReceivedCommand cmd_test from @nicolo-ribaudo received. Current queue size: 0 Live output at: http://54.241.84.105:8877/7e4be60b1d2e9cf/output.txt |
From: Bot.io (Windows)ReceivedCommand cmd_test from @nicolo-ribaudo received. Current queue size: 0 Live output at: http://54.193.163.58:8877/ff9a16bb7b33c01/output.txt |
issue16127-partial is an actual failure. |
46b601d
to
d5232f6
Compare
/botio test |
From: Bot.io (Linux m4)ReceivedCommand cmd_test from @nicolo-ribaudo received. Current queue size: 1 Live output at: http://54.241.84.105:8877/ce9905486ba3f83/output.txt |
From: Bot.io (Windows)ReceivedCommand cmd_test from @nicolo-ribaudo received. Current queue size: 1 Live output at: http://54.193.163.58:8877/f00cd2d81ab7f77/output.txt |
From: Bot.io (Linux m4)FailedFull output at http://54.241.84.105:8877/7e4be60b1d2e9cf/output.txt Total script time: 37.21 mins
Image differences available at: http://54.241.84.105:8877/7e4be60b1d2e9cf/reftest-analyzer.html#web=eq.log |
From: Bot.io (Windows)FailedFull output at http://54.193.163.58:8877/ff9a16bb7b33c01/output.txt Total script time: 73.01 mins
Image differences available at: http://54.193.163.58:8877/ff9a16bb7b33c01/reftest-analyzer.html#web=eq.log |
From: Bot.io (Linux m4)FailedFull output at http://54.241.84.105:8877/ce9905486ba3f83/output.txt Total script time: 37.50 mins
Image differences available at: http://54.241.84.105:8877/ce9905486ba3f83/reftest-analyzer.html#web=eq.log |
From: Bot.io (Windows)FailedFull output at http://54.193.163.58:8877/f00cd2d81ab7f77/output.txt Total script time: 72.64 mins
Image differences available at: http://54.193.163.58:8877/f00cd2d81ab7f77/reftest-analyzer.html#web=eq.log |
62931e4
to
7205c79
Compare
/botio test |
From: Bot.io (Linux m4)ReceivedCommand cmd_test from @nicolo-ribaudo received. Current queue size: 0 Live output at: http://54.241.84.105:8877/ae4d6d607511823/output.txt |
From: Bot.io (Windows)ReceivedCommand cmd_test from @nicolo-ribaudo received. Current queue size: 0 Live output at: http://54.193.163.58:8877/bf88e15e087711e/output.txt |
/botio preivew |
From: Bot.io (Windows)InvalidCommand not implemented: |
From: Bot.io (Linux m4)InvalidCommand not implemented: |
/botio-linux preview |
From: Bot.io (Linux m4)ReceivedCommand cmd_preview from @nicolo-ribaudo received. Current queue size: 1 Live output at: http://54.241.84.105:8877/1e9f58f26ca2aa9/output.txt |
From: Bot.io (Linux m4)FailedFull output at http://54.241.84.105:8877/ae4d6d607511823/output.txt Total script time: 38.02 mins
Image differences available at: http://54.241.84.105:8877/ae4d6d607511823/reftest-analyzer.html#web=eq.log |
From: Bot.io (Linux m4)SuccessFull output at http://54.241.84.105:8877/1e9f58f26ca2aa9/output.txt Total script time: 0.94 mins Published |
From: Bot.io (Windows)FailedFull output at http://54.193.163.58:8877/bf88e15e087711e/output.txt Total script time: 75.76 mins
Image differences available at: http://54.193.163.58:8877/bf88e15e087711e/reftest-analyzer.html#web=eq.log |
/botio-linux preview |
From: Bot.io (Linux m4)ReceivedCommand cmd_preview from @nicolo-ribaudo received. Current queue size: 0 Live output at: http://54.241.84.105:8877/ca578216bde8665/output.txt |
From: Bot.io (Linux m4)SuccessFull output at http://54.241.84.105:8877/ca578216bde8665/output.txt Total script time: 0.94 mins Published |
The preview URL doesn't seem to work, but this should be ready. |
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.
LGTM. Thank you.
This PR changes the way we store bounding boxes so that they use less memory and can be more easily shared across threads in the future. Instead of storing the bounding box and list of dependencies for each operation that renders _something_, we now only store the bounding box of _every_ operation and no dependencies list. The bounding box of each operation covers the bounding box of all the operations affected by it that render something. For example, the bounding box of a `setFont` operation will be the bounding box of all the `showText` operations that use that font. This affects the debugging experience in pdfBug, since now the bounding box of an operation may be larger than what it renders itself. To help with this, now when hovering on an operation we also highlight (in red) all its dependents. We highlight with white stripes operations that do not affect any part of the page (i.e. with an empty bbox). To save memory, we now save bounding box x/y coordinates as uint8 rather than float64. This effectively gives us a 256x256 uniform grid that covers the page, which is high enough resolution for the usecase.
7205c79
to
e4ea2e0
Compare
/botio test |
From: Bot.io (Windows)ReceivedCommand cmd_test from @nicolo-ribaudo received. Current queue size: 0 Live output at: http://54.193.163.58:8877/40c9d727050f303/output.txt |
From: Bot.io (Linux m4)ReceivedCommand cmd_test from @nicolo-ribaudo received. Current queue size: 0 Live output at: http://54.241.84.105:8877/7da6f2a47a8ffb0/output.txt |
From: Bot.io (Linux m4)FailedFull output at http://54.241.84.105:8877/7da6f2a47a8ffb0/output.txt Total script time: 37.37 mins
Image differences available at: http://54.241.84.105:8877/7da6f2a47a8ffb0/reftest-analyzer.html#web=eq.log |
From: Bot.io (Windows)FailedFull output at http://54.193.163.58:8877/40c9d727050f303/output.txt Total script time: 77.21 mins
Image differences available at: http://54.193.163.58:8877/40c9d727050f303/reftest-analyzer.html#web=eq.log |
Snapshot differences look correct |
/botio makeref |
From: Bot.io (Linux m4)ReceivedCommand cmd_makeref from @calixteman received. Current queue size: 0 Live output at: http://54.241.84.105:8877/6b6979be7e630b2/output.txt |
From: Bot.io (Windows)ReceivedCommand cmd_makeref from @calixteman received. Current queue size: 0 Live output at: http://54.193.163.58:8877/f05e628eea21194/output.txt |
From: Bot.io (Linux m4)SuccessFull output at http://54.241.84.105:8877/6b6979be7e630b2/output.txt Total script time: 17.95 mins
|
From: Bot.io (Windows)SuccessFull output at http://54.193.163.58:8877/f05e628eea21194/output.txt Total script time: 31.66 mins
|
Follow up to #19043.
Due to the more coarse bounding boxes, some tests that previously had a 1-pixel difference on the edge of the partial render now match exactly. We'll need to re-generate the reference images for them.