ccv icon indicating copy to clipboard operation
ccv copied to clipboard

Investigate transferable objects and typed arrays

Open ebidel opened this issue 13 years ago • 1 comments

webkitPostMessage() supports transferable objects which are orders of magnitude faster than structured cloning (regular postMessage()). They're currently supported in Chrome, but could help speed up perf quite a bit.

http://updates.html5rocks.com/2011/12/Transferable-Objects-Lightning-Fast

Also, Chrome and other browsers now support sending JSON data directly, so if 1.) doesn't work out, you can get rid of JSON.parse/JSON.stringify in the postMessage calls.

http://updates.html5rocks.com/2011/09/Workers-ArrayBuffer

ebidel avatar Jun 30 '12 22:06 ebidel

thanks for the head-up, will definitely investigate that. However, my current priority is to bring SWT up to the standard (current best in ICDAR test set has f-rate of 0.66, ccv's version only reached about f-rate 0.55).

liuliu avatar Jul 02 '12 05:07 liuliu