liuliu / ccv

C-based/Cached/Core Computer Vision Library, A Modern Computer Vision Library
http://libccv.org
Other
7.07k stars 1.71k forks source link

Investigate transferable objects and typed arrays #14

Open ebidel opened 12 years ago

ebidel commented 12 years ago

1. 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

2. 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

liuliu commented 12 years ago

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).