Re:Demonstrating Web Worker: Sorting a 50K array in your bro...
by ColinWright on Sunday May 31, 2015 @01:53PM
(#9634897)
Deeply misleading title. It's basically pointing out that if you use "Web Worker" then you can do stuff in the browser in background. It's really nothing to do with sorting the array - it's just using that as a task for the background work.
[ Parent
| on HN ]
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?
Re:Demonstrating Web Worker: Sorting a 50K array in your bro...
by afshinmeh on Sunday May 31, 2015 @02:08PM
(#9634950)
Thank you. I just updated the title.
Re:Demonstrating Web Worker: Sorting a 50K array in your bro...
by ColinWright on Sunday May 31, 2015 @02:14PM
(#9634970)
You need to update the title on this submission as well:
Demonstrating Web Worker: Background
sorting a 50K array in your browser
Or something similar.
Re:Demonstrating Web Worker: Sorting a 50K array in your bro...
by afshinmeh on Sunday May 31, 2015 @02:16PM
(#9634975)
Cool, Updated.
Re:Demonstrating Web Worker: Sorting a 50K array in your bro...
by ColinWright on Sunday May 31, 2015 @02:39PM
(#9635052)
I strongly recommend you update your web page title to say the same thing, otherwise the mods here may adjust this title to match that one.