loam icon indicating copy to clipboard operation
loam copied to clipboard

Use transferrable objects for data transfer

Open ddohler opened this issue 6 years ago • 0 comments

Using transferList in Worker.postMessage() will reduce memory usage and probably boost performance somewhat by allowing large byte arrays (which we deal with a lot) to be transferred between the worker and the main thread rather than copied. https://developer.mozilla.org/en-US/docs/Web/API/Worker/postMessage

ddohler avatar Jun 05 '18 11:06 ddohler