3 ms·
How does this play with Cython? I'd assume most performance-sensitive projects will have compiled their hotspot modules with Cython. So how does Pyston work al
by Radim 5y ago
How does this play with Cython?
I'd assume most performance-sensitive projects will have compiled their hotspot modules with Cython. So how does Pyston work alongside Cython?
- fnord123 5y agoTo give comparative numbers, in my experience Cython yields 900% speedup.
- thomasahle 5y agoWith Cython you can get C level performance. The cost is that your Python code has to be written just as you would write C. See e.g. https://github.com/thomasahle/fast_pq/blob/main/_fast_pq.pyx#L169 https://github.com/thomasahle/fast_pq/blob/main/_fast_pq.pyx... for how much fast Cython code can look like C.
- viraptor 5y agoIt should in theory. Cython generates modules using cpython API. As long as Pyston is compatible with existing C extensions (and it should be), there's not much difference between them and cythonized py source.