Commit b13ade0
committed
HTML Reporter: Faster "Hide passed" toggling on large test suites
Optimize the hidepassed click handler for large test suites by
avoiding internal function call overhead for the iterator, as well
as copying cost for the array. Shaves off ~100ms milliseconds on the
q4000 demo 1.65s to 1.5s (Chrome, CPU throttle 6x), and seems to defer
some unattributed costs to outside the critical path.
Cherry-picked from a729421 (3.0.0-dev).1 parent 567ab7d commit b13ade0
1 file changed
+11
-7
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
196 | 196 | | |
197 | 197 | | |
198 | 198 | | |
199 | | - | |
200 | | - | |
201 | | - | |
202 | 199 | | |
| 200 | + | |
| 201 | + | |
203 | 202 | | |
204 | 203 | | |
205 | 204 | | |
| |||
211 | 210 | | |
212 | 211 | | |
213 | 212 | | |
214 | | - | |
215 | | - | |
| 213 | + | |
| 214 | + | |
| 215 | + | |
216 | 216 | | |
217 | 217 | | |
218 | | - | |
219 | | - | |
| 218 | + | |
| 219 | + | |
| 220 | + | |
| 221 | + | |
| 222 | + | |
220 | 223 | | |
| 224 | + | |
221 | 225 | | |
222 | 226 | | |
223 | 227 | | |
| |||
0 commit comments