Skip to content

Optimize Poly3DCollection.get_vector for ndarray arguments #16680

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

Closed
wants to merge 1 commit into from

Conversation

apaszke
Copy link
Contributor

@apaszke apaszke commented Mar 5, 2020

PR Summary

This adds some extra code-paths, which take advantage of the fact that
the input polygons have the same number of vertices and are already
in a NumPy array.

Saves 0.3s for a 400x400 surface plot on my old MBP. This continues the series of patches from #16659.

PR Checklist

  • Has Pytest style unit tests
  • Code is Flake 8 compliant
  • New features are documented, with examples if plot related
  • Documentation is sphinx and numpydoc compliant
  • Added an entry to doc/users/next_whats_new/ if major new feature (follow instructions in README.rst there)
  • Documented in doc/api/api_changes.rst if API changed in a backward-incompatible way

This adds some extra code-paths, which take advantage of the fact that
the input polygons have the same number of vertices and are already
in a NumPy array.
@apaszke
Copy link
Contributor Author

apaszke commented Mar 5, 2020

Superseded by #16688

@apaszke apaszke closed this Mar 5, 2020
@apaszke apaszke deleted the optimize_get_vector branch March 5, 2020 20:58
@anntzer
Copy link
Contributor

anntzer commented Mar 5, 2020

(You can force-push to the same branch to reuse the PR.)

@apaszke
Copy link
Contributor Author

apaszke commented Mar 5, 2020

I know, but I've decided to take a completely different approach, so I figured it might be better to create a new one. It needed a whole new description, etc.

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.

2 participants