Geert Wildert
Geert Wildert

Reputation: 21

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

Upvotes: 2

Views: 2724

Answers (3)

user395760
user395760

Reputation:

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

Upvotes: 2

recursive
recursive

Reputation: 86084

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.

Upvotes: 1

Katriel
Katriel

Reputation: 123632

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

Upvotes: 9

Related Questions