astrojs / fitsjs

JavaScript library for reading the FITS astronomical format. Functionality includes reading of images, data cubes, compressed images, binary and ascii tables.
http://astrojs.github.io/fitsjs/
MIT License
85 stars 21 forks source link

Spawn web worker to read dataunit chunks #12

Closed kapadia closed 10 years ago

kapadia commented 11 years ago

Image is done. Need to implement for other dataunits.

Merg1255 commented 10 years ago

I suppose creating new threads will let the app read at the same time the image and text/binary data. Any future plans for implementation? Thanks

kapadia commented 10 years ago

@Merg1255 Not at the present. If a use case emerges, then I'm happy to revisit this. At the moment, images are read on another thread, and binary tables are read asynchronously on the main thread. That does allow for simultaneous reading, but you might want to avoid that when reading from the local filesystem as that would prevent efficient I/O.