Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Python doesn't have opcode cacher?

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 searching, I still can't find a Python opcode cacher.

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

like image 568
Geert Wildert Avatar asked Mar 16 '26 00:03

Geert Wildert


2 Answers

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

like image 55
Katriel Avatar answered Mar 18 '26 14:03

Katriel


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).


Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!