angular2-web-worker icon indicating copy to clipboard operation
angular2-web-worker copied to clipboard

Use transferList for angular2-web-workers communication.

Open WolfSoko opened this issue 7 years ago • 0 comments

Added the optional parameter transferList to the WebWorkerService use function. If provided, the parameter is set as the transferList parameter of the postMessage method. It is used to give control over an e.g. ArrayBuffer to the execution context of the webworker without cloning the hole data.

Also the webworker can now provide a transferList inside the return object.

This can be usefull for task like image manipulation and everything that needs to transfer a big amount of data.

Also I implemented an example showing the times used for big data transfer with and without transferList.

Also I raised the version number to 0.0.7

WolfSoko avatar Sep 12 '17 11:09 WolfSoko