joshspeagle / dynesty

Dynamic Nested Sampling package for computing Bayesian posteriors and evidences
https://dynesty.readthedocs.io/
MIT License
347 stars 76 forks source link

speedup jitter_run #256

Closed segasai closed 3 years ago

segasai commented 3 years ago

Jitter_run is slow. (it takes 60% of time of test_dyn.py)

The patch makes trivial speedups

Before (cProfile on test_dyn.py)

    ncalls  tottime  percall  cumtime  percall filename:lineno(function)
     1664   79.624    0.048   97.583    0.059 utils.py:380(jitter_run)

After

     1664   69.921    0.042   77.390    0.047 utils.py:380(jitter_run)
coveralls commented 3 years ago

Pull Request Test Coverage Report for Build 864998055


Totals Coverage Status
Change from base Build 861576137: -0.04%
Covered Lines: 3364
Relevant Lines: 4672

💛 - Coveralls