Keeping Python loaded
pinard at iro.umontreal.ca
Sat Nov 24 17:18:32 CET 2001
> Is there some existing facility for keeping Python running in memory at
> all times,
If you merely want to spare disk acceses under Unix, a possible approach
might be to set the sticky bit on the Python executable. You might need
to be super-user to do that:
chmod 1755 /usr/bin/python
On the other hand, on Linux at least, the disk cache maintained by the system
might be helpful to the point of not even having to resort to the above trick.
However, if you want to spare the CPU needed for Python initialisation
and such, the above does not help, you need more specialised solutions.
François Pinard http://www.iro.umontreal.ca/~pinard
More information about the Python-list