问题:
I've been hearing a lot about the PyPy project. 我一直听到很多关于PyPy项目的消息。 They claim it is 6.3 times faster than the CPython interpreter on their site . 他们声称它比他们网站上的CPython解释器快6.3倍。
Whenever we talk about dynamic languages like Python, speed is one of the top issues. 每当我们谈论像Python这样的动态语言时,速度是最重要的问题之一。 To solve this, they say PyPy is 6.3 times faster. 为了解决这个问题,他们说PyPy的速度要快6.3倍。
The second issue is parallelism, the infamous Global Interpreter Lock (GIL). 第二个问题是并行性,臭名昭着的全球口译锁 (GIL)。 For this, PyPy says it can give GIL-less Python . 为此,PyPy表示它可以提供无GIL的Python 。
If PyPy can solve these great challenges, what are its weaknesses that are preventing wider adoption? 如果PyPy可以解决这些巨大的挑战,它的弱点是什么阻碍了更广泛的采用? That is to say, what's preventing someone like me, a typical Python developer, from switching to PyPy right now ? 也就是说,什么阻止像我这样的人,一个典型的Python开发人员, 现在切换到PyPy?
解决方案:
参考一: https://stackoom.com/question/1HUtK/如果PyPy快-倍-为什么我不应该使用PyPy而不是CPython参考二: https://oldbug.net/q/1HUtK/Why-shouldn-t-I-use-PyPy-over-CPython-if-PyPy-is-6-3-times-faster
来源:oschina
链接:https://my.oschina.net/u/4438370/blog/4267713