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

Use new PyO3 API to improve performance #18

Merged
merged 2 commits into from
Aug 26, 2024

Conversation

padix-key
Copy link
Member

@padix-key padix-key commented Aug 24, 2024

In recent version PyO3 introduced some new API that increases performance:

  • A Python parameter in functions renders acquiring the GIL via Python::with_gil() obsolete.
  • A new Bound API avoids some array copying.

This PR replaces the now deprecated PyO3 API with the new one.

@padix-key
Copy link
Member Author

I turns out the performance improvements are quite marginal. This PR is still valid as it replaces the deprecated API with the newer, much clearer one.

Copy link

codspeed-hq bot commented Aug 24, 2024

CodSpeed Performance Report

Merging #18 will not alter performance

Comparing padix-key:performance (089a8c2) with main (68d6053)

Summary

✅ 7 untouched benchmarks

@padix-key padix-key merged commit bfd4283 into biotite-dev:main Aug 26, 2024
16 checks passed
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.

1 participant