Python calling Java

Gerhard =?unknown-8bit?Q?H=E4ring?= gh_pythonlist at gmx.de
Tue Feb 19 04:51:10 EST 2002


Le 18/02/02 ? 17:40, Paul Rubin écrivit:
> danb_83 at yahoo.com (Dan Bishop) writes:
> > > I have downloaded and tried out Jython, but it takes 5-6 seconds
> > > just to run a one-line 'print "hi"' script, and this is, of
> > > course, not acceptable for a web server.
> > 
> > Because you expect that running a ten-line script will take a minute?
> 
> Huh?  The 5-6 seconds is probably startup overhead so the ten-line
> script would take the same 5-6 seconds, which is already unacceptable
> for a web server.  Even 1 second is enough to make the server feel
> unresponsive.

A JVM just isn't suited for CGI scripts because of the startup overhead.
That's why I proposed to rewrite the whole stuff as Jython servlets.

Gerhard
-- 
This sig powered by Python!
Außentemperatur in München: 4.3 °C      Wind: 5.9 m/s




More information about the Python-list mailing list