Two versions were tried for passing non-transferable objects
JSON.stringify
to process the object before passing to postMessage
The relative performance varies depending on the browser used, Mozilla and IE don't have significant difference in performance, but Chrome is much slower if the objects are not serialised first.
The final version uses transferable objects.
Updated missing url https://gitcdn.xyz/repo/cool-Blue/d3-lib/master/Output/Output/Output.js to https://cdn.jsdelivr.net/gh/repo/cool-blue/d3-lib/output/output/output.js
Updated missing url https://gitcdn.xyz/repo/cool-Blue/d3-lib/master/elapsedTime/elapsed-time-2.0.js to https://cdn.jsdelivr.net/gh/repo/cool-blue/d3-lib/elapsedtime/elapsed-time-2.0.js
Updated missing url https://gitcdn.xyz/repo/cool-Blue/d3-lib/master/plot/plot-transform.js to https://cdn.jsdelivr.net/gh/repo/cool-blue/d3-lib/plot/plot-transform.js
Updated missing url https://gitcdn.xyz/repo/cool-Blue/d3-lib/master/plot/fps-histogram.js to https://cdn.jsdelivr.net/gh/repo/cool-blue/d3-lib/plot/fps-histogram.js
https://ajax.googleapis.com/ajax/libs/jquery/2.1.3/jquery.min.js
https://cdnjs.cloudflare.com/ajax/libs/jquery/3.0.0-alpha1/jquery.min.js
https://cdnjs.cloudflare.com/ajax/libs/d3/3.5.5/d3.min.js
https://gitcdn.xyz/repo/cool-Blue/d3-lib/master/Output/Output/Output.js
https://gitcdn.xyz/repo/cool-Blue/d3-lib/master/elapsedTime/elapsed-time-2.0.js
https://gitcdn.xyz/repo/cool-Blue/d3-lib/master/plot/plot-transform.js
https://gitcdn.xyz/repo/cool-Blue/d3-lib/master/plot/fps-histogram.js