mergesort: improve tests and performance
Get series with b4
b4 am [email protected]Versions newest first
- v1 Latest9 patches 19 repliesIn review
Patches in v1 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/9 | test-mergesort: use strbuf_getline()t/ | +2 | 2 replies | |
| 2/9 | test-mergesort: add sort subcommandt/ | +8 | 1 reply | |
| 3/9 | test-mergesort: add test subcommandt/ t/ | +242 | 11 replies | |
| 4/9 | test-mergesort: add generate subcommandt/ | +59 | 0 replies | |
| 5/9 | test-mergesort: add unriffle modet/ | +29 | 0 replies | |
| 6/9 | test-mergesort: add unriffle_skewed modet/ | +28 | 0 replies | |
| 7/9 | p0071: measure sorting of already sorted and reversed filest/ | +22 | 0 replies | |
| 8/9 | p0071: test performance of llist_mergesort()t/ | +11 | 0 replies | |
| 9/9 | mergesort: use ranks stackmergesort.c | +66 | 5 replies |
Reviews trailers per patch
No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.
Cover letter [PATCH 0/9] mergesort: improve tests and performance
Our mergesort for linked lists doesn't allocate temporary memory, which is nice. It is traversing the list multiple times from start to finish, though. This series teaches it to avoid that, which speeds it up considerably. But first it improves the associated test helper to exercise the code harder and to make the effect of the changes visible in terms of saved operations.
test-mergesort: use strbuf_getline()
test-mergesort: add sort subcommand
test-mergesort: add test subcommand
test-mergesort: add generate subcommand
test-mergesort: add unriffle mode
test-mergesort: add unriffle_skewed mode
p0071: measure sorting of already sorted and reversed files
p0071: test performance of llist_mergesort()
mergesort: use ranks stack
mergesort.c | 121 +++++++------ t/helper/test-mergesort.c | 360 +++++++++++++++++++++++++++++++++++++- t/perf/p0071-sort.sh | 40 ++++- t/t0071-sort.sh | 11 ++ 4 files changed, 465 insertions(+), 67 deletions(-) create mode 100755 t/t0071-sort.sh
--
2.33.0