TE
科技回声
首页24小时热榜最新最佳问答展示工作
GitHubTwitter
首页

科技回声

基于 Next.js 构建的科技新闻平台,提供全球科技新闻和讨论内容。

GitHubTwitter

首页

首页最新最佳问答展示工作

资源链接

HackerNews API原版 HackerNewsNext.js

© 2025 科技回声. 版权所有。

Immortal Objects for Python

14 点作者 ot超过 1 年前

4 条评论

krossitalk超过 1 年前
A ~2% slowdown in every python program everywhere sounds...unfortunate to say the least.
评论 #37147224 未加载
tgma超过 1 年前
I was mostly curious if they accomplished this with some neat trick other than adding a check to every Py_INCREF and Py_DECREF to check for a magic value, which would be a performance overhead for all non-immortal objects, but it seems there's not much to see there--it's a 2% cost for normal use cases.
actinium226超过 1 年前
I've read through the PEP but I don't understand how I would implement this if I wanted to. Will there be some base class I can inherit from?
评论 #37211247 未加载
smegsicle超过 1 年前
lol corporate memphis tattoo