Closed Bug 1815343 Opened 2 years ago Closed 2 years ago

Use transferables to send the ArrayBuffers to the worker.

Categories

(Firefox :: Translations, task, P3)

task

Tracking

()

RESOLVED FIXED
113 Branch
Tracking Status
firefox113 --- fixed

People

(Reporter: gregtatum, Assigned: gregtatum)

References

Details

Attachments

(1 file)

In the initial implementation I did simple message passing, but it's probably possible to use transferables to send them more efficiently.

https://developer.mozilla.org/en-US/docs/Web/API/Web_Workers_API/Transferable_objects

This work shouldn't be done until Bug 1815339 is investigated, since I'm not sure if workers will be in the final implementation if we consolidate to 1 process.

Blocks: 1820214
Blocks: 1820240
No longer blocks: 1820240
Assignee: nobody → gtatum

This should be reviewed or merged until Bug 1818603 lands, since it will conflict with it.

Attachment #9321113 - Attachment description: WIP: Bug 1815343 - Transfer ArrayBuffers in the translations code; r?nordzilla → Bug 1815343 - Transfer ArrayBuffers in the translations code; r?nordzilla
Pushed by gtatum@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/2590940e3b67 Transfer ArrayBuffers in the translations code; r=nordzilla
Pushed by gtatum@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/fac08f48c037 Transfer ArrayBuffers in the translations code; r=nordzilla
Status: NEW → RESOLVED
Closed: 2 years ago
Resolution: --- → FIXED
Target Milestone: --- → 113 Branch
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: