Sounds like fun ;)
Sounds like fun ;)
Or taking a bandwidth-bound problem and completely eliminating that bottleneck.
If you've got 1000 people converting videos at once, the embarrassingly parallel isn't going to help you much on the server.
This does look like fun, and really a nice validation for emscripten, and there's a ton of practical application.
[1]: http://pmav.eu/stuff/javascript-webworkers/
Here are my results: 8 Workers, Test: 2^1024000000 mod 97777 = 20631, 1515 ms 4 Workers, Test: 2^1024000000 mod 97777 = 20631, 2899 ms 2 Workers, Test: 2^1024000000 mod 97777 = 20631, 5773 ms 1 Worker, Test: 2^1024000000 mod 97777 = 20631, 11508 ms
If they manage to move FFMPEG encoding into multiple web workers I'd love to read their writeup though!