[Pythonmac-SIG] pythonw stay open
Nicholas Riley
njriley at uiuc.edu
Wed Dec 7 08:01:28 CET 2005
On Wed, Dec 07, 2005 at 06:18:49AM +0000, Ryan Wilcox wrote:
> 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...)
Use FastCGI, SCGI, or similar?
--
Nicholas Riley <njriley at uiuc.edu> | <http://www.uiuc.edu/ph/www/njriley>
More information about the Pythonmac-SIG
mailing list