Re: Recommended practice for transfer of C++ large arrays from web worker to JavaScript in an HTML

2016-11-04 Thread Sohail Siadat
gt; > You can also optimize the postMessage data transfer by using the > 'transferList' parameter, putting the buffer property of each typed array > in the list. This will avoid an extra copy of the smaller backing buffer, > as long as you no longer need the array in the worker. > >

Re: Recommended practice for transfer of C++ large arrays from web worker to JavaScript in an HTML

2016-12-01 Thread Sohail Siadat
thod: > > https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Function/apply > > var func = mapOfFunctions[funcName]; > func.apply(Module, args); // Module is the 'this' param > > -- brion > > > > On Fri, Nov 4, 2016 at 9:51 AM, Sohail Siadat