igmhub / picca

set of tools for continuum fitting, correlation function calculation, cosmological fits...
GNU General Public License v3.0
31 stars 22 forks source link

Cross-correlation:: Don't look when quasar are too far from first or last pixel #25

Closed londumas closed 7 years ago

londumas commented 7 years ago

It is possible to fast the code by not looking when quasars are too far from first or last pixel.

With a simple time and checking the output is the same, we have:

1000 forests, no cut

real 2m39.522s user 4m25.268s sys 0m15.972s

1000 forests, with cut

real 1m57.189s user 3m22.204s sys 0m2.720s

londumas commented 7 years ago

fixed in fix_issue_25

londumas commented 7 years ago

for 10000,

10000, no cuts

real 22m40.997s user 39m3.276s sys 5m10.960s

10000, with cuts

real 15m11.999s user 29m10.548s sys 0m18.256s