| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
numpy.MachAr is expensive to use just to determine min/max float value; use numpy.finfo instead since it caches this information. This results in significant performance gains when updating axes limits frequently.
|
#4813 is definitely related to this (it just caches the result of MachAr itself). Not sure if one approach is preferable over the other... |
Sorry, something went wrong.
|
Ah I missed that pull request. Yeah that way is probably slightly faster since it avoids creating a temporary object... |
Sorry, something went wrong.
| Back | FazBrowse Home | New Git URL |
numpy.MachAr() is expensive to use just to determine
min/max float value; use numpy.finfo() instead since
it caches this information. This results in
significant performance gains when updating axes limits
frequently.