dropchop icon indicating copy to clipboard operation
dropchop copied to clipboard

Start using Webworkers for big jobs

Open nickpeihl opened this issue 9 years ago • 6 comments

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.

nickpeihl avatar Oct 28 '15 21:10 nickpeihl

Ah yes, this has come up in #127 as well. I'm not terribly familiar with workers so would love some direction here!

mapsam avatar Oct 28 '15 22:10 mapsam

Unfortunately, I'm not familiar with it either. But I wouldn't mind tackling it after I finish arcgis-feature-services.

nickpeihl avatar Oct 28 '15 22:10 nickpeihl

Bam! Looking forward to seeing what it's all about :dancers:

mapsam avatar Oct 28 '15 23:10 mapsam

This seems like a good place to get started with webworkers - http://catilinejs.com/

jczaplew avatar Oct 30 '15 01:10 jczaplew

Turf-Async is a demo of how I'd expect this to work. I'll try to add more documentation this weekend.

nickpeihl avatar Feb 19 '16 19:02 nickpeihl

Oh... this is cool. I will take a look, but thanks for posting this!

aaronr avatar Feb 19 '16 19:02 aaronr