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

+pypy-optimized implementation #1

Merged
merged 1 commit into from
Jan 5, 2024
Merged

+pypy-optimized implementation #1

merged 1 commit into from
Jan 5, 2024

Conversation

donalm
Copy link
Contributor

@donalm donalm commented Jan 5, 2024

This tweak of your implementation completes in about 22s for me, when run with pypy.
It's much slower with cpython - 2:35 on my last attempt.

It just avoids method calls and the creation of unnecessary data structures in the hot loop.
The performance seems to be quite sensitive to the size of the 'blocksize' variable, so it may want a different blocksize value on your hardware.

@ifnesi ifnesi merged commit ade5303 into ifnesi:main Jan 5, 2024
@ifnesi
Copy link
Owner

ifnesi commented Jan 5, 2024

Hi @donalm, thank you very much. Very impressive! I have merged and updated the README with the details of what we have accomplished. Thanks again

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