Serialize font data into an ArrayBuffer#20197
Conversation
b94a669 to
f1c77a8
Compare
f1c77a8 to
e1f3955
Compare
|
/botio test |
From: Bot.io (Windows)ReceivedCommand cmd_test from @calixteman received. Current queue size: 0 Live output at: http://54.193.163.58:8877/6e14aa6b1d242d0/output.txt |
From: Bot.io (Linux m4)ReceivedCommand cmd_test from @calixteman received. Current queue size: 0 Live output at: http://54.241.84.105:8877/674ef4520aa6062/output.txt |
From: Bot.io (Linux m4)FailedFull output at http://54.241.84.105:8877/674ef4520aa6062/output.txt Total script time: 23.37 mins
Image differences available at: http://54.241.84.105:8877/674ef4520aa6062/reftest-analyzer.html#web=eq.log |
From: Bot.io (Windows)FailedFull output at http://54.193.163.58:8877/6e14aa6b1d242d0/output.txt Total script time: 49.14 mins
Image differences available at: http://54.193.163.58:8877/6e14aa6b1d242d0/reftest-analyzer.html#web=eq.log |
a78f7e7 to
5f0e2fa
Compare
eaeb707 to
1c2ea27
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/3c3da7d0df464a2/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/216ff290b68a023/output.txt |
From: Bot.io (Linux m4)FailedFull output at http://54.241.84.105:8877/3c3da7d0df464a2/output.txt Total script time: 23.52 mins
Image differences available at: http://54.241.84.105:8877/3c3da7d0df464a2/reftest-analyzer.html#web=eq.log |
From: Bot.io (Windows)FailedFull output at http://54.193.163.58:8877/216ff290b68a023/output.txt Total script time: 49.25 mins
Image differences available at: http://54.193.163.58:8877/216ff290b68a023/reftest-analyzer.html#web=eq.log |
|
/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/210d3d3e388fdc2/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/a79b2a32552982d/output.txt |
From: Bot.io (Linux m4)FailedFull output at http://54.241.84.105:8877/210d3d3e388fdc2/output.txt Total script time: 23.43 mins
Image differences available at: http://54.241.84.105:8877/210d3d3e388fdc2/reftest-analyzer.html#web=eq.log |
From: Bot.io (Windows)ReceivedCommand cmd_test from @nicolo-ribaudo received. Current queue size: 1 Live output at: http://54.193.163.58:8877/60e4fee3ecc3172/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/f12a598df83220a/output.txt |
From: Bot.io (Linux m4)SuccessFull output at http://54.241.84.105:8877/f12a598df83220a/output.txt Total script time: 37.62 mins
|
From: Bot.io (Windows)FailedFull output at http://54.193.163.58:8877/60e4fee3ecc3172/output.txt Total script time: 77.42 mins
|
b00dbcc to
5c5d1d2
Compare
This PR serializes font data into an ArrayBuffer that is then transfered from the worker to the main thread. It's more efficient than the current solution which clones the "export data" object which includes the font data as a Uint8Array. It prepares us to switch to a SharedArrayBuffer in the future, which would allow us to share the font data with multiple agents, which would be crucial for the upcoming "renderer" worker.
5c5d1d2 to
4bed737
Compare
|
@calixteman thanks for the suggestions! Not just nitpicks, they helped clean up the code. Apologies for not having figured it out in the spur of the moment. I've also moved other (older) properties that were used by Marking this PR as ready for review. |
|
/botio test |
From: Bot.io (Windows)ReceivedCommand cmd_test from @calixteman received. Current queue size: 0 Live output at: http://54.193.163.58:8877/33694271676e160/output.txt |
From: Bot.io (Linux m4)ReceivedCommand cmd_test from @calixteman received. Current queue size: 0 Live output at: http://54.241.84.105:8877/547627523594abd/output.txt |
From: Bot.io (Linux m4)SuccessFull output at http://54.241.84.105:8877/547627523594abd/output.txt Total script time: 38.01 mins
|
From: Bot.io (Windows)FailedFull output at http://54.193.163.58:8877/33694271676e160/output.txt Total script time: 77.88 mins
|
Follow up on mozilla#20197, This serializes pattern data into an ArrayBuffer which is then transferred from the worker to the main thread. It sets up the stage for us to eventually switch to a SharedArrayBuffer in the future.
Follow up on mozilla#20197, This serializes pattern data into an ArrayBuffer which is then transferred from the worker to the main thread. It sets up the stage for us to eventually switch to a SharedArrayBuffer in the future.
Follow up on mozilla#20197, This serializes pattern data into an ArrayBuffer which is then transferred from the worker to the main thread. It sets up the stage for us to eventually switch to a SharedArrayBuffer in the future.
Follow up on mozilla#20197, This serializes pattern data into an ArrayBuffer which is then transferred from the worker to the main thread. It sets up the stage for us to eventually switch to a SharedArrayBuffer in the future.
This PR serializes font data into an ArrayBuffer
that is then transfered from the worker to the
main thread. It's more efficient than the current
solution which clones the "export data" object
which includes the font data as a Uint8Array.
It prepares us to switch to a SharedArrayBuffer
in the future, which would allow us to share
the font data with multiple agents, which would be
crucial for the upcoming "renderer" worker.