A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://mail.python.org/pipermail/python-dev/2002-March/021604.html below:

[Python-Dev] Re: PEP 282 comments

[Python-Dev] Re: PEP 282 comments [Python-Dev] Re: PEP 282 commentsAahz aahz@pythoncraft.com
Fri, 22 Mar 2002 01:18:06 -0500
On Thu, Mar 21, 2002, Jeremy Hylton wrote:
>
> Aha!  I must have gone out of my way to miss this.  This is certainly
> a good thing.  In the case of the ZEO server, we put all the trace and
> debug level logging calls inside "if __debug__:"  We see a 20% speedup
> on compute intensive benchmarks when running with -O.  So avoiding the
> string formatting is a nice savings.

Hrm.  Based on previous comments, particularly from the Timbot, I'm
wondering whether the linkage between !debugging and optimizing is too
tight in Python, and whether constructs like this should be deprecated.
Seems to me that there will definitely be times you want debugging
output when you're running -O.
-- 
Aahz (aahz@pythoncraft.com)           <*>         http://www.pythoncraft.com/

"We should forget about small efficiencies, about 97% of the time.
Premature optimization is the root of all evil."  --Knuth



RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4