Skip to content

Vectorise some for loops for improved runtime. #9

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

Merged
merged 1 commit into from
Apr 27, 2025
Merged

Conversation

murphp30
Copy link

Hi there, in response to Issue #4 I've made some small changes to a few functions that replace for loops with some numpy vectorisation. The speed up is ~20 times faster per iteration.
I'm fairly certain I haven't changed any outputs but don't have any "known data" to compare.
I'd love to hear your thoughts on it.
Thanks and all the best.

@kleok
Copy link
Owner

kleok commented Apr 27, 2025

Thanks for the contribution 💯 @murphp30

@kleok kleok merged commit 6069418 into kleok:main Apr 27, 2025
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