vrruiz / xisfits

Convert images from XISF to FITS
MIT License
8 stars 0 forks source link

Added buffered writing #13

Closed Razican closed 5 years ago

Razican commented 5 years ago

This is the same as #9 but for the writing part, I forgot to add it there. Basically, if we buffer the output, less I/O operations will happen, and therefore, it will be more efficient.

I also added generic parameters to the functions in fitswriter. It's true that this increases (a bit) compile times, but it will be easier to maintain in case in the future you decide to use something that's not a BufWriter for writing the output.

vrruiz commented 5 years ago

Looks good!