开发者

Python doesn't have opcode cacher?

开发者 https://www.devze.com 2023-01-11 12:26 出处:网络
I\'m currently using PHP. I plan to start using Django for some of my next project. But I don\'t have any experience with Python. After some sea开发者_JAVA技巧rching, I still can\'t find a Python opc

I'm currently using PHP. I plan to start using Django for some of my next project.

But I don't have any experience with Python. After some sea开发者_JAVA技巧rching, I still can't find a Python opcode cacher.

(There are lots of opcode cacher for PHP: APC, eAccelerator, Xcache, ...)


It's automatic in Python -- a compiled .pyc file will appear magically.


Python doesn't need one the same way PHP needs it. Python doesn't throw the bytecode away after execution, it keeps it around (as .pyc files).


It's built in: http://pyfaq.infogami.com/how-do-i-create-a-pyc-file

Python can compile to *.pyc files that effectively do the same thing.

0

精彩评论

暂无评论...
验证码 换一张
取 消