tools: speed up genv8constants
genv8constants was much slower than necessary due to lack of pipe buffering.
This commit is contained in:
parent
868ffed77c
commit
648fdc56a0
@ -17,7 +17,7 @@ if len(sys.argv) != 3:
|
|||||||
|
|
||||||
outfile = file(sys.argv[1], 'w');
|
outfile = file(sys.argv[1], 'w');
|
||||||
pipe = subprocess.Popen([ 'objdump', '-z', '-D', sys.argv[2] ],
|
pipe = subprocess.Popen([ 'objdump', '-z', '-D', sys.argv[2] ],
|
||||||
stdout=subprocess.PIPE).stdout;
|
bufsize=-1, stdout=subprocess.PIPE).stdout;
|
||||||
pattern = re.compile('00000000 <(v8dbg_.*)>:');
|
pattern = re.compile('00000000 <(v8dbg_.*)>:');
|
||||||
numpattern = re.compile('[0-9a-fA-F]{2}');
|
numpattern = re.compile('[0-9a-fA-F]{2}');
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user