CARTAvis / carta-backend

Source code repository for the backend component of CARTA, a new visualization tool designed for the ALMA, the VLA and the SKA pathfinders.
https://cartavis.github.io/
GNU General Public License v3.0
22 stars 11 forks source link

Image loading optimisations #966

Open veggiesaurus opened 3 years ago

veggiesaurus commented 3 years ago

Epic for a few connected issues on image loading optimisation. Goal is to roughly double initial image loading speed of FITS images for version 3.0-beta.3 (and have performance gains for HDF5 files when contouring).

As a comparative benchmark: DS9 can load a 64K x 64K FITS image on my machine in 10 500 ms (time from clicking "Load" to the image being displayed). The same thing in CARTA takes 17 500 ms. 1700 ms of that time is taken up by the histogram calculation, and 500 ms is taken up by downsampling and compressing tiles, so there's still a lot of room for improvement. Simply reading the same image into memory using fits_read_pix takes 7500 ms, so we should be able to get our loading time down to ~ 10 seconds.

veggiesaurus commented 2 years ago

reassigning all issues in this epic to @jolopezl