Commit 1a2d9c89 authored by rossp's avatar rossp

Revert r124059, is only relevant for 1.4.

Not sure what 1.5 is doing differently, I couldn't find the difference
reading the code but both profiling and timing data show that this
isn't an issue under 1.5/trunk, just under 1.4 into which this change
has already been merged.

git-svn-id: http://svn.zope.org/repos/main/zc.buildout/trunk@124125 62d5b8a3-27da-0310-9561-8e5933582275
parent 9d52e441
......@@ -4,13 +4,6 @@ Change History
1.6.0 (unreleased)
==================
- Avoid sorting the working set and requirements when it won't be
logged. When profiling a simple buildout with 10 parts with
identical and large working sets, this resulted in a decrease of run
time from 93.411 to 15.068 seconds, about a 6 fold improvement. To
see the benefit be sure to run without any increase in verbosity
("-v" option). (rossp)
- The buildout init command now accepts distribution requirements and
paths to set up a custom interpreter part that has the distributions
or parts in the path. For example::
......
......@@ -1850,15 +1850,6 @@ class MissingDistribution(zc.buildout.UserError):
return "Couldn't find a distribution for %r." % str(req)
def _log_requirement(ws, req):
if not logger.isEnabledFor(logging.DEBUG):
# Sorting the working set and iterating over it's requirements
# is expensive, so short cirtuit the work if it won't even be
# logged. When profiling a simple buildout with 10 parts with
# identical and large working sets, this resulted in a
# decrease of run time from 93.411 to 15.068 seconds, about a
# 6 fold improvement.
return
ws = list(ws)
ws.sort()
for dist in ws:
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment