Re:Demonstrating Web Worker: Sorting a 50K array in your bro...
by MrBuddyCasino on Sunday May 31, 2015 @02:35PM
(#9635032)
Yeah, its even a bit slower since it doesn't appear to be using multiple workers.
Slightly OT, but I found that you can detect the number of available cores with "navigator.hardwareConcurrency", but unfortunately that includes HT threads, at least in Chrome on OSX, so it says 8 instead of 4 on my machine. Is there a workaround?
Slightly OT, but I found that you can detect the number of available cores with "navigator.hardwareConcurrency", but unfortunately that includes HT threads, at least in Chrome on OSX, so it says 8 instead of 4 on my machine. Is there a workaround?