[Pythonmac-SIG] pythonw stay open

Ryan Wilcox ryanwilcox at mac.com
Wed Dec 7 07:18:49 CET 2005


Hello all,

I have a bunch of CGIs that make use of pythonw (+cgiwrap) to allow me  
to send AppleEvents (via appscript) to applications on the web server  
machine.

Everytime I hit one of these CGIs, pythonw launches a Python  
application (which makes sense). While this machine is under heavy-ish  
load (CPU hogging applications), it feels like launching pythonw takes  
"too long" (read: a second or two, which is too long in CGI time.)

Is it possible to leave pythonw open all of the time, and avoid paying  
the "launch costs", or is the price for launching pythonw too minimal  
to notice ("time... says...")? (Meaning that I should try to optimize  
my system some other way, like moving the CPU hogging process off that  
machine...)

Thanks for your advice on the situation,
_Ryan Wilcox



More information about the Pythonmac-SIG mailing list