summaryrefslogtreecommitdiff
path: root/bin/objcounts.py
diff options
context:
space:
mode:
authorSteven Knight <knight@baldmt.com>2005-03-04 21:27:30 +0000
committerSteven Knight <knight@baldmt.com>2005-03-04 21:27:30 +0000
commit213996506374ad40fc7ee4949e2be3790ead99d9 (patch)
treee994d5104a10b6dd448afee90cd411931cf6670a /bin/objcounts.py
parent3bf4475522d2a24910b147a607dcd9f0d980097f (diff)
downloadscons-213996506374ad40fc7ee4949e2be3790ead99d9.tar.gz
Optimize out N*M suffix matching in Builder.py.
Diffstat (limited to 'bin/objcounts.py')
-rw-r--r--bin/objcounts.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/bin/objcounts.py b/bin/objcounts.py
index 1b72837a..db02aab4 100644
--- a/bin/objcounts.py
+++ b/bin/objcounts.py
@@ -35,7 +35,7 @@ Compare the --debug=object counts from two build logs.
def fetch_counts(fname):
contents = open(fname).read()
- m = re.search('\nObject counts:\n(.*)\n[^\s]', contents, re.S)
+ m = re.search('\nObject counts:(\n\s[^\n]*)*', contents, re.S)
lines = m.group().split('\n')
list = [l.split() for l in lines if re.match('\s+\d', l)]
d = {}