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

后端 未结 3 930
清歌不尽
清歌不尽 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:54

    The switch to LLVM itself isn't solving the concurrency problem. That's being solved separately, by getting rid of the Global Interpreter Lock.

    I'm not sure how I feel about that; I use threads mainly to deal with blocking I/O, not to take advantage of multicore processors (for that, I would use the multiprocessing module to spawn separate processes).

    So I kind of like the GIL; it makes my life a lot easier not having to think about tricky synchronization issues.

提交回复
热议问题