launchpad-dev team mailing list archive
-
launchpad-dev team
-
Mailing list archive
-
Message #06804
Re: [performance] Twisted Exception "features"
Andrew Bennetts wrote:
[…]
> As Jono says it'd be wonderful to improve this in upstream Twisted, it's
> something that would impact many Twisted apps to some degree. Perhaps
> it would be ok to treat the _debugInfo flag that already exists as the
> flag to set whether or not to capture tracebacks in errbacks? That
> might be a bit too all-or-nothing, although it's possible that the
> “expensive” work _debugInfo currently does is actually much cheaper than
> the regular cleanFailure calls. It's certainly easy to make a patch to
> do that, so I'll do so and see what the other Twisted devs think. Maybe
> it'll inspire someone to think of a better solution.
I've filed <http://twistedmatrix.com/trac/ticket/5011> for this change.
As I say in comments there another option may be to keep capturing
tracebacks when callbacks raise errors, but stop capturing all frame
details, i.e. the locals and globals.
-Andrew.
References