From 648fdc56a044dcdbbdd9d830eae064715c3c41ef Mon Sep 17 00:00:00 2001 From: Dave Pacheco Date: Tue, 17 Jul 2012 15:25:11 -0700 Subject: tools: speed up genv8constants genv8constants was much slower than necessary due to lack of pipe buffering. --- tools/genv8constants.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'tools/genv8constants.py') diff --git a/tools/genv8constants.py b/tools/genv8constants.py index 5c3defb485..efc644152d 100755 --- a/tools/genv8constants.py +++ b/tools/genv8constants.py @@ -17,7 +17,7 @@ if len(sys.argv) != 3: 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}'); -- cgit v1.2.3