[英]Effect of Python 3.11 on Cython-compiled modules
I have a pure-Python module that compiles with Cython into .so
, for performance.我有一个纯 Python 模块,它使用 Cython 编译成
.so
以提高性能。
The project currently uses Python 3.8 and everything works fine.该项目目前使用 Python 3.8,一切正常。
I've read CPython 3.11 comes with potentially great performance benefits , so I'm wondering the cost/benefit effort of upgrading.我读过 CPython 3.11 comes with potentially great performance benefits ,所以我想知道升级的成本/收益。
Do any of the CPython 3.11 optimizations translate to Cython-compiled code?是否有任何 CPython 3.11优化转换为 Cython 编译的代码? Which ones?
哪个? How much?
多少?
What is the expected overall effect of Cython on 3.11 relative to 3.8 code?相对于 3.8 代码,Cython 在 3.11 上的预期整体效果如何?
Basically none of it.基本上都没有。
As ever, if you're really interested then you should measure it.一如既往,如果你真的感兴趣,那么你应该测量它。 But I wouldn't expect many benefits to Cython code
但我不希望 Cython 代码有很多好处
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.