gpt4 book ai didi

python - 64 位机器的 psyco 替代品

转载 作者:太空狗 更新时间:2023-10-29 23:56:01 31 4
gpt4 key购买 nike

Psyco太棒了when it works .然而,如果不迁移到 32 位版本的 Python,我们似乎不会获得 64 位版本 anytime soon .是否有任何替代 psyco 的方法可以加速 CPU 绑定(bind)的通用 python 代码?

相关

Psyco x64?

What are the possible pitfalls in porting Psyco to 64-bit?

最佳答案

答案是使用PyPy反而。来自 http://psyco.sourceforge.net/introduction.html :

My plans for 2006 are to port the techniques implemented in Psyco to PyPy.

来自 PyPy blog post二月:

...highlights and the status of pypy:
* most Python benchmarks run much faster than with CPython or Psyco
* the real-world PyPy compiler toolchain itself (200 KLocs) runs twice as fast
* supports x86 32 and 64bit and is in the process of supporting ARM
...

关于python - 64 位机器的 psyco 替代品,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/5331487/

31 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com