summaryrefslogtreecommitdiffstats
path: root/bin
diff options
context:
space:
mode:
authorSteven Knight <knight@baldmt.com>2005-03-04 21:27:30 (GMT)
committerSteven Knight <knight@baldmt.com>2005-03-04 21:27:30 (GMT)
commitf09cf794b2dbf820acd6912ac7f986cc8c10d455 (patch)
treee994d5104a10b6dd448afee90cd411931cf6670a /bin
parent6188ab24587a1e8ebb5dc7dabcb1ab66f77d4a13 (diff)
downloadSCons-f09cf794b2dbf820acd6912ac7f986cc8c10d455.zip
SCons-f09cf794b2dbf820acd6912ac7f986cc8c10d455.tar.gz
SCons-f09cf794b2dbf820acd6912ac7f986cc8c10d455.tar.bz2
Optimize out N*M suffix matching in Builder.py.
Diffstat (limited to 'bin')
-rw-r--r--bin/objcounts.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/bin/objcounts.py b/bin/objcounts.py
index 1b72837..db02aab 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 = {}