projects
/
platform
/
upstream
/
nodejs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
868ffed
)
tools: speed up genv8constants
author
Dave Pacheco
<dap@cs.brown.edu>
Tue, 17 Jul 2012 22:25:11 +0000
(15:25 -0700)
committer
Ben Noordhuis
<info@bnoordhuis.nl>
Tue, 17 Jul 2012 22:56:02 +0000
(
00:56
+0200)
genv8constants was much slower than necessary due to lack of pipe buffering.
tools/genv8constants.py
patch
|
blob
|
history
diff --git
a/tools/genv8constants.py
b/tools/genv8constants.py
index
5c3defb
..
efc6441
100755
(executable)
--- 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}');