Commit 2fc330f
Improve test_runner performance: O(n²) → O(n) test grouping and fix ct_hooks collection
Summary: Replace the O(n²) add_or_append/2 function in get_requested_tests/1 with a map-based accumulator that preserves insertion order in O(n) time. Also fix getCtHook/3 to use lists:partition/2 instead of lists:splitwith/2, which would miss non-contiguous ct_hooks entries in the options list.
Reviewed By: jcpetruzza
Differential Revision: D95046286
fbshipit-source-id: c50aba5cf10a2271fd301ac5be12754086253a9e1 parent 2a2f265 commit 2fc330f
1 file changed
Lines changed: 12 additions & 19 deletions
Lines changed: 12 additions & 19 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
370 | 370 | | |
371 | 371 | | |
372 | 372 | | |
373 | | - | |
374 | | - | |
| 373 | + | |
| 374 | + | |
375 | 375 | | |
376 | | - | |
| 376 | + | |
| 377 | + | |
| 378 | + | |
| 379 | + | |
| 380 | + | |
| 381 | + | |
| 382 | + | |
377 | 383 | | |
378 | | - | |
| 384 | + | |
379 | 385 | | |
380 | | - | |
381 | | - | |
382 | | - | |
383 | | - | |
384 | | - | |
385 | | - | |
386 | | - | |
387 | | - | |
388 | | - | |
389 | | - | |
390 | 386 | | |
391 | | - | |
392 | | - | |
393 | | - | |
394 | | - | |
| 387 | + | |
395 | 388 | | |
396 | 389 | | |
397 | 390 | | |
| |||
435 | 428 | | |
436 | 429 | | |
437 | 430 | | |
438 | | - | |
| 431 | + | |
439 | 432 | | |
440 | 433 | | |
441 | 434 | | |
| |||
0 commit comments