Python 3.2 中的新 GIL 足以进行转换吗?

发布于 2024-08-18 14:39:32 字数 1432 浏览 5 评论 0原文

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(3

我是有多爱你 2024-08-25 14:39:32

它仍然是一个 GIL。 完全没有任何 GIL 的 Python 实现已经存在十多年了。比 CPython 快得多的 Python 实现已经存在多年了。

(几乎)没有人使用它们,这清楚地表明没有人关心性能或 GIL,所以我几乎不认为它们是一个“杀手级功能”。杀手级功能是人们真正想要的东西。

It's still a GIL. Python implementations without any GIL at all have been available for over a decade now. Python implementations that are much faster than CPython have been available for years.

(Almost) noone uses them, which clearly shows that nobody cares about performance or the GIL, so I hardly see them being a "killer feature". Killer features are something that people actually want.

半暖夏伤 2024-08-25 14:39:32

如果您大量使用线程,New GIL 可以被认为是 Python 3.2 的杀手级功能。 空载燕子的集成也可以从性能角度来看,被认为是杀手级功能。

总的来说,我认为 py3k 已经有足够的功能来保证切换;它没有广泛的图书馆支持。大多数图书馆已经开始考虑这种转变,但这还有很长的路要走。到一年后 3.2 发布时,我预计我所依赖的大多数库都在兼容性方面取得了长足的进步,而这正是促使我进行切换的原因。

The New GIL could be considered a killer feature of Python 3.2 if you use threading heavily. Integration of unladen swallow could also be considered a killer feature from a performance perspective.

In general, I think py3k already has enough features to warrant switching; what it doesn't have is broad library support. Most libraries have already started looking at the transition, but it is a good ways away. By the time 3.2 comes out a year from now, I expect most of the libraries I depend on to have made strong progress with compatibility, and that is what would make me switch.

雪若未夕 2024-08-25 14:39:32

3.2 大约还有一年。到那时,希望在转向 py3k 方面能够取得一些进展,这也恰逢 Guido 向一些大型项目承诺的两年“宽限期”。我不认为会有任何单一的“杀手级”功能,即使有人需要它,我也认为 unicode 支持在优先级阶梯上会高得多。

3.2 is roughly a year away. By that time hopefully there will be some progress on switching to py3k, it also coincides with the two year "grace" period that was supposedly promised by Guido to some big projects. I don't think that there will be any single "killer" feature, and even if anyone would need it, I'd imagine unicode support would be much higher on priority ladder.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文