Open b-remy opened 5 months ago
I also noticed that this function takes long. Until now, we have only jitted the inner loops of the sampling and the fitting functions because jit usually works best when it sees large code blocks. But it might be a good idea to jit (some part of) the renderer. The most high-level function would be Observation.render
Can you try if this helps?
Hi @pmelchior , I ran a profiler on the
scene_spectra_to_match
function and as you can see, the interpolation function (in the resampling renderer) is taking most of the time (3 calls per rendering operation)37 seconds overall
This can be reduced to 6.3 seconds by jitting the
resample_obs
function ininterpolate.py
Interpolating images is indeed expensive, so should we jit this function in the code?