[ZODB-Dev] profiling zLOG and inspect
Christian Reis
kiko at async.com.br
Sun Jun 15 19:55:21 EDT 2003
On Sun, Jun 15, 2003 at 03:23:38PM -0400, Guido van Rossum wrote:
> > > > There's also the runtime cost of making calls to zLOG that won't do
> > > > anything. I'd (lambda x: pass) all those calls out (if not
> > > > environ.has_key()).
> > >
> > > If you submit a patch to do that, we might consider it. But I expect
> > > that during the creation of the patch you'll find how inelegant the
> > > approach you are proposing is.
> >
> > Maybe, but do you see an alternative optimization that comes more
> > elegantly? I'm attacking all the different parts, and the zLOG import
> > comes up high in relation to other bits.
>
> I'm confused. The topic of your post is startup cost; yet here you
> are discussing runtime cost, while you claim that your application
> runs fast enough. So why bother? I sincerely doubt that the zLOG
> calls cost much time. Have you profiled it?
I'm concerned with startup cost; however, zLOG is used throughout the
ZODB code, which means that `turning it off' is more involved than
simply avoiding the import. I was proposing to define a stub zLOG.LOG().
I don't think zLOG.LOG is a significant cost, now that you ask :-)
Take care,
--
Christian Reis, Senior Engineer, Async Open Source, Brazil.
http://async.com.br/~kiko/ | [+55 16] 261 2331 | NMFL
More information about the ZODB-Dev
mailing list