[PATCH] Still more useful traces
David Allouche
david at allouche.net
Tue Oct 18 08:16:54 BST 2005
On Tue, 2005-10-18 at 16:44 +1000, Martin Pool wrote:
> On 18/10/05, David Allouche <david at allouche.net> wrote:
> >
> > Set the logging level of the root logger, so setting BZR_DEBUG gives
> > debugging output from non-bzr code. I found that useful to get pybaz
> > debug logging while working on baz2bzr.
>
> It looks like python logging is quite slow compared to the previous
> version in bzrlib.trace - about 8-10x slower even when discarding
> messages. I was wondering if any other applications used python
> logging -- I take it pybaz does?
Well, yes it does, but really in very limited sort of way. And since the
applications I wrote using pybaz were generally limited by baz, I never
had a need to optimise it for python performance.
All I can say is: when in a critical loop, avoid python function calls.
Or even better, write an extension module.
--
-- ddaa
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part
Url : https://lists.ubuntu.com/archives/bazaar/attachments/20051018/dd14169c/attachment.pgp
More information about the bazaar
mailing list