V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
推荐学习书目
Learn Python the Hard Way
Python Sites
PyPI - Python Package Index
http://diveintopython.org/toc/index.html
Pocoo
值得关注的项目
PyPy
Celery
Jinja2
Read the Docs
gevent
pyenv
virtualenv
Stackless Python
Beautiful Soup
结巴中文分词
Green Unicorn
Sentry
Shovel
Pyflakes
pytest
Python 编程
pep8 Checker
Styles
PEP 8
Google Python Style Guide
Code Style from The Hitchhiker's Guide
imes
V2EX  ›  Python

浅试了一下 Python 3.13 的 JIT,未来很美好

  •  
  •   imes · 19 天前 · 931 次点击

    闲着没事,刚好 Python 3.13 的 alpha 版本出来了,浅试了一下万众期待的 JIT 功能。

    1. 代码基本不需要特意修改,直接可以 JIT 运行
    2. 原先是 Cpython 解释并执行;现在是 Cpython 翻译,CPU/OS 运行机器码
    3. 使用 LLVM 生态,Clang 进行编译,-o3 开大
    4. 未见明显性能提升(~20%,可能和 HotSpot/test case 没做完有关),毕竟刚引入,性能可以后续优化

    话说,都用 LLVM+Clang 了,岂不是 Python4 可以一步到位(我在想桃子吃

    1 条回复    2024-04-11 17:49:50 +08:00
    mayli
        1
    mayli  
       19 天前
    我觉得聊胜于无
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   我们的愿景   ·   实用小工具   ·   1662 人在线   最高记录 6543   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 26ms · UTC 16:27 · PVG 00:27 · LAX 09:27 · JFK 12:27
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.