Twisted Matrix and Python Scripts

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Fazer

    Twisted Matrix and Python Scripts

    Hello,

    I am very interested in fooling around with Twisted Matrix's HTTP Web
    Server. I was thinking if .rpy scripts would run much faster than
    traditional CGI scripts?

    After looking how asynchronous Twisted's framework really is, I have
    been interested in it.

    Thanks,
  • Andrew Bennetts

    #2
    Re: Twisted Matrix and Python Scripts

    On Sun, Sep 21, 2003 at 01:41:04PM -0700, Fazer wrote:[color=blue]
    > Hello,
    >
    > I am very interested in fooling around with Twisted Matrix's HTTP Web
    > Server. I was thinking if .rpy scripts would run much faster than
    > traditional CGI scripts?[/color]

    They'll generally be much faster, because there's no need to start a fresh
    python process for every request.

    It's worth noting, though, that .rpy scripts aren't meant to be Twisted
    equivalent of CGI scripts; they should simply create and configure a
    twisted.web.res ource.Resource (or subclass thereof). If your .rpy is more
    than 10 lines, you're almost certainly using it the wrong way... see
    http://twistedmatrix.com/documents/h...eb-development.
    [color=blue]
    > After looking how asynchronous Twisted's framework really is, I have
    > been interested in it.[/color]

    By the way, you might find you have better luck with Twisted questions on
    the Twisted mailing list, twisted-python@twistedm atrix.com. Not all of the
    Twisted people read comp.lang.pytho n regularly.

    -Andrew.


    Comment

    Working...