Skip to content

[FEATURE] Faster than dict? #18

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

Closed
Marco-Sulla opened this issue Aug 2, 2020 · 1 comment
Closed

[FEATURE] Faster than dict? #18

Marco-Sulla opened this issue Aug 2, 2020 · 1 comment
Labels
Status: Fixed Now it works! Type: Enhancement New feature or request

Comments

@Marco-Sulla
Copy link
Owner

I experimented a little with CPython code. It seems that potentially a C implementation of frozendict can be faster than dict in creation and iteration.
https://github.com/Marco-Sulla/cpython/tree/frozendict/
Benchmark:
https://github.com/Marco-Sulla/cpython/blob/frozendict/frozendict/test/bench.txt

The result is very promising, and maybe I can do a C extension for Python 3.10.

@Marco-Sulla
Copy link
Owner Author

Done.

@Marco-Sulla Marco-Sulla added the Status: Fixed Now it works! label Dec 22, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Status: Fixed Now it works! Type: Enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant