2 ms·
It quite easy in fact: before going asynchronous, people should learn datastructures and algorithms adapted to what they want to do. It's wiser to limit the wo
by mackwic 12y ago
It quite easy in fact: before going asynchronous, people should learn datastructures and algorithms adapted to what they want to do.
It's wiser to limit the work your CPU has to do rather than hide this work behind high-level non-deterministic structures like WebWorkers like no work is done.
Don't get me wrong, I'm not saying that WebWorker are useless. I just say that really costly operations are rare if you know your DS and complexities.
Oh, by the way, you usually don't have to implement theses datastructures yourself. Even javascripts have [collections](http://www.collectionsjs.com/ http://www.collectionsjs.com/).