-
Notifications
You must be signed in to change notification settings - Fork 1
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
Explore PyPy, mypyc, Cython #113
Comments
PyPy disadvantages:
Useful review of other compilers, followed by mypyc content https://glyph.twistedmatrix.com/2022/04/you-should-compile-your-python-and-heres-why.html These tools benefit from comprehensive (and narrow, i.e. few
Other compilers:
Worth trying out PyPy and mypyc, as they can more or less work with existing code. Can still consider Cython in cases where the alternative is a full rewrite in Rust. Can try these on ocds-merge for learning. |
Original description is from when issue was only about PyPy.
We do a fair bit of JSON deserializing (and serializing). On CPython, we use orjson. The json standard library on PyPy is slower, but not by a huge amount, so using PyPy could still be a performance gain. In principle, orjson could be made to support PyPy. ijl/orjson#90 (comment)
Candidates with heavy processing:
Next steps
PyPy profiler support
If PyPy really is faster than CPython for our workloads, then there is no point profiling and optimizing on CPython. So, we'd need profilers on PyPy.
Supported
Memory
TBD
Not supported
Memory
Comparison and discussion: plasma-umass/scalene#423
The text was updated successfully, but these errors were encountered: