linea-it / pz-compute

Pipeline to compute photo-zs using public codes for large volumes of data using the Brazilian's LSST IDAC infrastructure.
https://www.linea.org.br/idac-2
MIT License
3 stars 0 forks source link

Lazy load slow modules joblib and ceci #88

Closed hdante closed 2 weeks ago

hdante commented 1 month ago

This is a small performance optimization for when calling rail-estimate without parameters.

Before:

$ time rail-estimate
Usage:
    rail-estimate [options] [--] <input> <output>
    rail-estimate -h | --help
    rail-estimate --version

real        0m8.423s
user        0m0.370s
sys         0m0.365s

After:

$ time rail-estimate
Usage:
    rail-estimate [options] [--] <input> <output>
    rail-estimate -h | --help
    rail-estimate --version

real        0m0.105s
user        0m0.047s
sys         0m0.024s