mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2025-01-31 12:41:49 +01:00
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 ;-) llvm-svn: 24876
This commit is contained in:
parent
088b3ccdcc
commit
22cbcbef65
@ -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()
|
||||
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user