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.
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 aBufWriter
for writing the output.