This repository has been archived by the owner. It is now read-only.
Permalink
Browse files

tools: speed up genv8constants

genv8constants was much slower than necessary due to lack of pipe buffering.
  • Loading branch information...
1 parent 868ffed commit 648fdc56a044dcdbbdd9d830eae064715c3c41ef @davepacheco davepacheco committed with bnoordhuis Jul 17, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 tools/genv8constants.py
View
@@ -17,7 +17,7 @@
outfile = file(sys.argv[1], 'w');
pipe = subprocess.Popen([ 'objdump', '-z', '-D', sys.argv[2] ],
- stdout=subprocess.PIPE).stdout;
+ bufsize=-1, stdout=subprocess.PIPE).stdout;
pattern = re.compile('00000000 <(v8dbg_.*)>:');
numpattern = re.compile('[0-9a-fA-F]{2}');

0 comments on commit 648fdc5

Please sign in to comment.