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

Used numpy for much faster python implementation #11

Merged
merged 8 commits into from
Sep 24, 2023
Merged

Used numpy for much faster python implementation #11

merged 8 commits into from
Sep 24, 2023

Conversation

Copper280z
Copy link
Contributor

@Copper280z Copper280z commented Sep 24, 2023

This numpy implementation runs in ~0.72sec on my m2 air.

Edit: Knocked another 100ms off with array broadcasting, main now runs in 0.65 sec, 0.54sec without IO.

@jinyus
Copy link
Owner

jinyus commented Sep 24, 2023

Thanks for the PR. I got roughly the same speed on my machine

@jinyus jinyus merged commit 8a9ab19 into jinyus:main Sep 24, 2023
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