在64位OS中的64位CPU上运行X86-64 Python是否有好处? [英] Are there benefits to running X86-64 Python on a 64-bit CPU in a 64-bit OS?

查看:229
本文介绍了在64位OS中的64位CPU上运行X86-64 Python是否有好处?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

运行amd64构建的Python和扩展有什么好处? (很多扩展在此处编译为amd64 。)我有一个i5处理器和Win7 64位,因此似乎很合适。但这听起来也像是越野车,测试版,不受支持等。

What kind of benefits are there to running the amd64 builds of Python and extensions? (Lots of extensions compiled for amd64 here.) I have an i5 processor and Win7 64-bit, so it seems like it would be appropriate. But it also sounds like it is buggy, beta, unsupported, etc.

它确实提供了性能优势吗?在哪些地区?我会运行SciPy,NumPy等。有时我会在32位Python中遇到内存不足错误,并且我的机器具有4 GiB RAM。

Does it actually provide a performance benefit? In which areas? I'd be running SciPy, NumPy, etc. I occasionally get "out of memory" errors with 32-bit Python and my machine has 4 GiB of RAM.

Can如果没有64位版本的Win32软件包,可以安装在64位Python上?

Can win32 packages be installed on a 64-bit Python base if no 64-bit version of the package exists?

推荐答案

主要原理使用64位Python是指您可以访问超过2GB的主内存,例如如果您有较大的字典,列表或长字符串。这要求您实际上要在系统中拥有足够的内存才能实用。

The primary rationale to use a 64-bit Python is that you can access more than 2GB of main memory, e.g. if you have large dicts, lists, or long strings. This requires that you actually have that much memory in your system to be practical.

第二个效果是,在AMD64模式下,CPU具有更多的寄存器,因此生成的代码

A secondary effect is that in AMD64 mode, the CPU has more registers, so the resulting code may run slightly faster (for integer operations).

在Windows上以64位模式运行的Python肯定不是beta或不受支持的。它可能有问题,但前提是您确实具有非常大的数据结构。 64位Python已有15年历史了(尽管Windows除外)。

Python in 64-bit mode on Windows certainly is not beta or unsupported. It may be buggy, but only if you actually do have very large data structures. 64-bit Python has been around 15 years (though not on Windows).

这篇关于在64位OS中的64位CPU上运行X86-64 Python是否有好处?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆