[Twisted-web] reduce deferred stack in nevow
Andrew Bennetts
andrew-twisted at puzzling.org
Wed Jan 19 20:38:31 MST 2005
On Thu, Jan 20, 2005 at 04:09:17AM +0100, Andrea Arcangeli wrote:
> On Thu, Jan 20, 2005 at 01:11:44PM +1100, Christopher Armstrong wrote:
> > Did you actually find a real performance problem with using
> > addCallback/addErrback? Do you know that there is a big difference in
>
> Of course not (all cpu time seems spent for the rendering of the html),
> but the current code looked less optimal than it could have been with a
> simple change.
If you want to speed up Deferreds, you'll probably get faster results with
less effort with foom's cdefer work in the SVN sandbox...
[...]
> Since you mentioned a performance problem, the real performance problem
> I have is in the rendering, that takes >150msec for my simplest page in
> the whole site. The slowest takes 800msec and I'm going to make some
> that will be even slower than that. You can easily reproduce with [0] *
> 300 passed as input to annotate.Choice(). Now for most of the http part
> a reverse proxy can probably do the trick, but for the ssl part it can't
> (even ignoring the ssl issues) because it's too dynamic.
...but as you say, Deferreds don't really seem to be a significant speed
issue for you. Don't worry about them :)
-Andrew.
More information about the Twisted-web
mailing list