tim-speed / openmap-gta

Old styled GTA game using open map data
13 stars 1 forks source link

Implement Parallel.js #11

Open Glavin001 opened 11 years ago

Glavin001 commented 11 years ago

Description:

Parallel.js is a tiny library for multi-core processing in Javascript. It was created to take full advantage of the ever-maturing web-workers API. Javascript is fast, no doubt, but lacks the parallel computing capabilites of its peer languages due to its single-threaded computing model. In a world where the numbers of cores on a CPU are increasing faster than the speed of the cores themselves, isn't it a shame that we can't take advantage of this raw parallelism? Parallel.js solves that problem by giving you high level access to multicore processing using web workers. It runs in your browser (as long as it supports web workers). Check it out.

http://adambom.github.com/parallel.js/

Glavin001 commented 11 years ago

Note: Requires Underscore.js http://underscorejs.org/

Glavin001 commented 11 years ago

Alternatives: http://www.nczonline.net/blog/2009/01/13/speed-up-your-javascript-part-1/ http://www.ianww.com/blog/2012/11/04/optimizing-three-dot-js-performance-simulating-tens-of-thousands-of-independent-moving-objects/ https://github.com/caolan/async https://github.com/typpo/web-workers-fallback