aboutsummaryrefslogtreecommitdiff
path: root/utils/DSAextract.py
diff options
context:
space:
mode:
authorPatrick Meredith <pmeredit@cs.uiuc.edu>2005-12-20 02:03:23 +0000
committerPatrick Meredith <pmeredit@cs.uiuc.edu>2005-12-20 02:03:23 +0000
commitdae87b65365a8a3dae8e41c2e836572388ec84ba (patch)
tree2c5865c40e12413bd4f8825bbabcd2ffd1ecf10c /utils/DSAextract.py
parent69a889eb35d59a10e78a07cc26d41cbab31eddce (diff)
Added a break that I meant to include originally, for efficiency. Basically
it keeps it from trying to add the same node to the node set over and over if it matches multiple given patterns. Also in cases where there are a lot of patterns to be matched, and it matches an early one, this will make the script run slightly faster. It's more there because it logically should be, than anything else, I mean, Python is never going to be fast ;-) git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@24876 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'utils/DSAextract.py')
-rw-r--r--utils/DSAextract.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/utils/DSAextract.py b/utils/DSAextract.py
index de82b5556b..134e9453fb 100644
--- a/utils/DSAextract.py
+++ b/utils/DSAextract.py
@@ -66,6 +66,7 @@ while buffer != '':
#for the node (it will be Node(hex number)) to our set of nodes
if regexp.search(buffer):
node_set |= set([re.split('\s+',buffer,2)[1]])
+ break
buffer = input.readline()