launchpad-dev team mailing list archive
-
launchpad-dev team
-
Mailing list archive
-
Message #06782
Re: [performance] Twisted Exception "features"
Andrew Bennetts wrote:
[...]
> At a glance it wouldn't be too outrageously messy to make those changes
> to lib/lp/codehosting/vfs/transport.py, so I'll give it a go and propose
> a patch to lp too. Aside from having traceback-less Failures it should
> have no change to semantics.
You can find a patch (untested, sorry!) that does this in
<lp:~spiv/launchpad/codehosting-cheaper-failures>. I don't think it'll avoid
the expensive cleanFailures entirely, but hopefully will get 90% of them. It's
not too large:
codehosting/vfs/branchfs.py | 33 +++++++++++++++++++++------------
codehosting/vfs/branchfsclient.py | 3 ++-
codehosting/vfs/transport.py | 20 ++++++++++++++++----
services/twistedsupport/__init__.py | 25 ++++++++++++++++++++++---
4 files changed, 61 insertions(+), 20 deletions(-)
John, could you give this a try and see if it helps?
-Andrew.
Follow ups
References