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

Reduce Rust-Python inter-op cost significantly #174

Merged
merged 4 commits into from
Feb 21, 2023
Merged

Conversation

hombit
Copy link
Member

@hombit hombit commented Feb 21, 2023

We use suboptimal way to cast numpy arrays to corresponding rust-numpy structures. Here we rework this part to achive ~50x better performance of ObservationCount for zero-sized input for both __call__() and many().

See relevant discussion about pyo3 casting performance:
PyO3/pyo3#2968

@hombit hombit changed the title Reduce Rust-Python inter-op significantly Reduce Rust-Python inter-op cost significantly Feb 21, 2023
@hombit hombit force-pushed the dtype-dispatch-perf branch from 8647328 to b3a1917 Compare February 21, 2023 18:55
@hombit hombit merged commit e2f1541 into master Feb 21, 2023
@hombit hombit deleted the dtype-dispatch-perf branch February 21, 2023 19:51
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