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

Improve basic hash by METH_FASTCALL #87

Merged
merged 4 commits into from
Sep 17, 2024
Merged

Conversation

hajimes
Copy link
Owner

@hajimes hajimes commented Sep 17, 2024

Improve the performance of the hash() function with METH_FASTCALL, reducing the overhead of function calls. For data sizes between 1–2 KB (e.g., 48x48 favicons), performance is 10%–20% faster. For smaller data (~500 bytes, like 16x16 favicons), performance increases by approximately 30%.

Note that other legacy functions such as hash128() and hash64() are not yet updated in this PR.

@hajimes hajimes merged commit 6bb9987 into master Sep 17, 2024
46 checks passed
@hajimes hajimes deleted the feature/fastcall-keyword branch September 18, 2024 12:36
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