3 ms·
Depending on the data you are sending transferrable objects could be your solution. Typed arrays can be zero-copy transferred to a worker extremely quickly, mo
by Klathmon 8y ago
Depending on the data you are sending transferrable objects could be your solution.
Typed arrays can be zero-copy transferred to a worker extremely quickly, modified, then transferred back if needed.
No costly copying or cloning needed. But it won't work with just objects, just typed arrays.