desihub / specter

A toolkit for simulating multi-object spectrographs
Other
8 stars 7 forks source link

Small speedups #68

Closed sbailey closed 6 years ago

sbailey commented 6 years ago

This PR includes simple three O(1%) speedups that I found while reviewing how GaussHermitePSF._xypix in search of larger speedups.

lastephey commented 6 years ago

testing in progress

lastephey commented 6 years ago

Typical test case on Haswell runs in about ~4:40, this ran in about ~ 4:14. Limited statistics, only tested once.

Transposing only once at the end seems to be a good strategy.

weaverba137 commented 3 years ago

Is there a reason the branch small-speedups has not been deleted?