mbox series

[0/2] test-mergesort: reduce memory allocation overhead of sort subcommand

Message ID 128f0fb8-d29b-8622-0cfe-2ecadc999db5@web.de (mailing list archive)
Headers show
Series test-mergesort: reduce memory allocation overhead of sort subcommand | expand

Message

René Scharfe Aug. 28, 2022, 10:32 a.m. UTC
The sort subcommand of the test-mergesort helper is used by p0071 to
measure the performance of the linked list sort functions built by the
macro DEFINE_LIST_SORT.  It spends a significant amount of time
allocating memory for the test data.  This series reduces it to allow
focusing more on the actual sort performance.

  test-mergesort: read sort input all at once
  test-mergesort: use mem_pool for sort input

 t/helper/test-mergesort.c | 40 ++++++++++++++++++++++++++-------------
 1 file changed, 27 insertions(+), 13 deletions(-)

--
2.30.2