What is LLVM and How is replacing Python VM with LLVM increasing speeds 5x?

后端 未结 3 928
清歌不尽
清歌不尽 2021-02-01 04:17

Google is sponsoring an Open Source project to increase the speed of Python by 5x.

Unladen-Swallow seems to have a good project plan

Why is concurrency such a ha

3条回答
  •  清酒与你
    2021-02-01 04:48

    LLVM takes care of the nitty-gritty of code generation, so it lets them rewrite Psyco in a way that's more general, portable, maintainable. That in turn allows them to rewrite the CPython core, which lets them experiment with alternate GCs and other things needed to improve python's support for concurrency.

    In other words, LLVM doesn't solve the concurrency problem, it just frees up your hands so YOU can solve it.

提交回复
热议问题