Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

PERF: Use isinstance in get_pj_direction #1208

Merged
merged 1 commit into from
Dec 20, 2022
Merged

Conversation

snowman2
Copy link
Member

Related: #1205

@greglucas, this seems to be consistently faster for some reason. Can you verify?

@codecov
Copy link

codecov bot commented Dec 20, 2022

Codecov Report

Merging #1208 (bdfa6ae) into main (1e309c2) will not change coverage.
The diff coverage is n/a.

@@           Coverage Diff           @@
##             main    #1208   +/-   ##
=======================================
  Coverage   96.28%   96.28%           
=======================================
  Files          20       20           
  Lines        1803     1803           
=======================================
  Hits         1736     1736           
  Misses         67       67           

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

Copy link
Contributor

@greglucas greglucas left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍 I agree it seems to be a bit faster for both cases (default instance, and "forward"). A few hundred ns or so...

@snowman2 snowman2 merged commit 62a7b15 into pyproj4:main Dec 20, 2022
@snowman2 snowman2 deleted the isinstance branch December 20, 2022 04:25
@snowman2
Copy link
Member Author

Thanks for verifying 👍

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.

None yet

2 participants