dropchop
dropchop copied to clipboard
Start using Webworkers for big jobs
Webworkers appears to be a way to avoid locking the browser by threading JavaScript jobs. Can we use them with Turf.js? Sometimes I have a big appetite and would rather not lock my browser while chopping.
Ah yes, this has come up in #127 as well. I'm not terribly familiar with workers so would love some direction here!
Unfortunately, I'm not familiar with it either. But I wouldn't mind tackling it after I finish arcgis-feature-services
.
Bam! Looking forward to seeing what it's all about :dancers:
This seems like a good place to get started with webworkers - http://catilinejs.com/
Turf-Async is a demo of how I'd expect this to work. I'll try to add more documentation this weekend.
Oh... this is cool. I will take a look, but thanks for posting this!