-
Notifications
You must be signed in to change notification settings - Fork 5
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
speeding up clorm #101
Comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I would like to ask if clorm could be shipped with the possibility to compile it down to c/c++ (using cython)? I saw that pydantic also provide this feature and they are talking about a performance improvement of about 30-50%.
I played around a bit and with small changes in the source code (still valid python) i was able to compile it with cython. Running some benchmarks (with files in profiling-dir) looks quite nice especially when looping comes into play, f.i. creating and adding 500k facts to a factbase is about 38% faster or querying a factbase to find one element is about 32% faster.
For the full cython vs non-cython benchmark compare these two files
noncython.md
cython.md
If you like it just let me know and i'm keen to create a PR.
The text was updated successfully, but these errors were encountered: