Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@rabryan
Copy link

@rabryan rabryan commented Jul 30, 2015

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.

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.
@mdboom
Copy link
Member

mdboom commented Jul 30, 2015

#4813 is definitely related to this (it just caches the result of MachAr itself). Not sure if one approach is preferable over the other...

@rabryan
Copy link
Author

rabryan commented Jul 30, 2015

Ah I missed that pull request. Yeah that way is probably slightly faster since it avoids creating a temporary object...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants