Commit bab555a
test: speed up stringbytes-external test
test-stringbytes-external tends to take quite a while on slower
hardware. A lot of the time is taken by creating a new buffer that is
very large. The improvements come from reusing the same buffer.
PR-URL: #3005
Reviewed-By: Brian White <mscdex@mscdex.net>
Reviewed-By: Trevor Norris <trev.norris@gmail.com>
Reviewed-By: Roman Reiss <me@silverwind.io>1 parent ddf2583 commit bab555aCopy full SHA for bab555a
File tree
Expand file treeCollapse file tree
1 file changed
+21
-18
lines changedOpen diff view settings
Filter options
- test/parallel
Expand file treeCollapse file tree
1 file changed
+21
-18
lines changedOpen diff view settings
Collapse file
test/parallel/test-stringbytes-external.js
Copy file name to clipboardExpand all lines: test/parallel/test-stringbytes-external.js+21-18Lines changed: 21 additions & 18 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
113 | 113 | |
114 | 114 | |
115 | 115 | |
116 | | - |
117 | | - |
118 | | - |
119 | | - |
120 | 116 | |
121 | | - |
| 117 | + |
122 | 118 | |
123 | 119 | |
124 | 120 | |
125 | 121 | |
126 | 122 | |
127 | 123 | |
128 | 124 | |
| 125 | + |
| 126 | + |
| 127 | + |
| 128 | + |
| 129 | + |
| 130 | + |
| 131 | + |
| 132 | + |
| 133 | + |
129 | 134 | |
130 | | - |
| 135 | + |
131 | 136 | |
132 | 137 | |
133 | 138 | |
134 | | - |
| 139 | + |
135 | 140 | |
136 | 141 | |
137 | 142 | |
138 | | - |
| 143 | + |
139 | 144 | |
140 | 145 | |
141 | 146 | |
142 | | - |
| 147 | + |
143 | 148 | |
144 | 149 | |
145 | 150 | |
146 | | - |
| 151 | + |
147 | 152 | |
148 | 153 | |
149 | 154 | |
150 | | - |
| 155 | + |
151 | 156 | |
152 | 157 | |
153 | | - |
| 158 | + |
154 | 159 | |
155 | 160 | |
156 | 161 | |
157 | 162 | |
158 | | - |
| 163 | + |
159 | 164 | |
160 | 165 | |
161 | 166 | |
162 | | - |
163 | | - |
| 167 | + |
164 | 168 | |
165 | 169 | |
166 | 170 | |
167 | | - |
168 | | - |
| 171 | + |
169 | 172 | |
170 | 173 | |
171 | 174 | |
172 | | - |
| 175 | + |
173 | 176 | |
174 | 177 | |
175 | 178 | |
0 commit comments