Is multithreading with webworkers ineffective?
I have a project in which I have to process quite large objects, each taking about 500ms. I thought that using web workers would greatly speed up this process. But after playing around with web workers, they didn't seem to improve the speed at all - even if I took away the preprocessing the creation of the web workers. So I decided to create a simple example: there is an array with N numbers, and the sum of those numbers should be calculated. So first, without webworkers ( DEMO ): /** Goal: return sum of all numbers in array */ var numbers = []; for(var i = 0; i < N; i++){ numbers.push(Math