You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I noticed the Julia implementation was slower than the Python implementation. I was curious if you had any insight as to why this might be.
The following Julia code takes 38 seconds to run on my laptop:
using Reproject, FITSIO
using Dates
start =now()
input_data =FITS("gc_msx_e.fits")
output_projection =FITS("gc_2mass_k.fits")
for i in1:10
result =reproject(input_data, output_projection, shape_out = (1000,1000), order =2, hdu_in =1, hdu_out =1)
end
stop =now()
println(stop - start)
To set expectations clear, this package hasn't got much love lately, and while it was initially created for AstroImages.jl, that package doesn't use Reproject.jl anymore, so it's unlikely it'll get much more attention or further improvements.
if you have concrete improvements, like Fixes typos and dead link #15, they may still be accepted, just don't expect others to resolve open issues
to answer your question about why this code is much slower than the corresponding python code, it has been a long time since I last looked at this code, but it was probably not particularly optimised for performance, so extra memory allocations or type-instabilities may be around. Per the point above, if anyone is willing to fix those, they're more than welcome!
Hi!
I noticed the Julia implementation was slower than the Python implementation. I was curious if you had any insight as to why this might be.
The following Julia code takes 38 seconds to run on my laptop:
The equivalent Python code takes 3 seconds:
I'm very new to Julia so I'm trying to learn and may be missing something obvious. Thanks!
The text was updated successfully, but these errors were encountered: