[ZODB-Dev] [Report] ZEO (Client+Server together) spends almost
25% of time in code controlled by "if __debug__:"
Dieter Maurer
dieter at handshake.de
Mon Nov 17 13:53:32 EST 2003
Tim Peters wrote at 2003-11-16 15:37 -0500:
> ... "-O" and assigning to "__debug__" ...
> > However, in this case, Python is using "optimized" byte codes without
> > "SET_LINENO" instructions. I fear, this will make debugging impossible
>
> It shouldn't hurt getting the right line numbers in tracebacks, but it does
> make it impossible to set breakpoints in the Python debugger.
>
> > (Python 2.3 may be debuggable without "SET_LINENO" instructions,
> > but I am not sure).
>
> Yes, SET_LINENO is never generated (regardless of -O) in 2.3; different
> mechanisms are used in the 2.3 debugger.
Thank you for your comments!
When Zope 2.7 is released we will make a big upgrade (Python 2.3.2, Zope 2.7,
ZODB 3.2). We will then run Zope/ZEO in optimized mode and my
hack (assigning to "__debug__") will go away again.
--
Dieter
More information about the ZODB-Dev
mailing list