[FoRK] [Twisted-Python] EXIT CGI kludge Sanity Check (fwd from Harald.Nyman@astrazeneca.com)

Eugen Leitl eugen at leitl.org
Fri Feb 13 01:46:41 PST 2004


----- Forwarded message from Harald.Nyman at astrazeneca.com -----

From: Harald.Nyman at astrazeneca.com
Date: Fri, 13 Feb 2004 09:44:49 +0100
To: twisted-python at twistedmatrix.com
Subject: [Twisted-Python] EXIT CGI kludge Sanity Check
X-Mailer: Internet Mail Service (5.5.2650.21)
Reply-To: twisted-python at twistedmatrix.com

We inherited this Apache/CGI app, with ~15 HTML pages, generated by CGI
Python scripts importing a ton of modules each time.
Not exactly lightning fast, plus the code's a total mix of Python with HTML
fragments :(

Awaiting a complete revamp of the app, we replaced Apache/CGI with a
threaded Twisted TCP server, sitting memory-resident with "everything"
imported, and sending back HTML as requested by javascript/tiny applet in
the browser. Form <INPUT>s and cookies are passed from javascript to Python
as text-represented dictionaries.
The modifications to the Python code were minor; the performance boost is
... dramatic (the users are cheering).

Comments? Anyone done something similar? What do we tell the purists?

Thanks,
Harald

_____________________________________________
Harald Nyman MSc, AstraZeneca Mölndal, Sweden



_______________________________________________
Twisted-Python mailing list
Twisted-Python at twistedmatrix.com
http://twistedmatrix.com/cgi-bin/mailman/listinfo/twisted-python

----- End forwarded message -----
-- Eugen* Leitl <a href="http://leitl.org">leitl</a>
______________________________________________________________
ICBM: 48.07078, 11.61144            http://www.leitl.org
8B29F6BE: 099D 78BA 2FD3 B014 B08A  7779 75B0 2443 8B29 F6BE
http://moleculardevices.org         http://nanomachines.net
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 198 bytes
Desc: not available
Url : http://lair.xent.com/pipermail/fork/attachments/20040213/5b5c08eb/attachment.pgp


More information about the FoRK mailing list