git/list[1] front-page[2] threads[3] people[4] search[5] about
 

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

From
René Scharfe <l.s.r@web.de>
Date
Aug 28, 2022, 10:32 UTC
Message-ID
<128f0fb8-d29b-8622-0cfe-2ecadc999db5@web.de>

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

Next: René Scharfe
Message 1 of 3 in “test-mergesort: reduce memory allocation overhead of sort subcommand”
  1. 0/2 test-mergesort: reduce memory allocation overhead of sort subcommandRené Scharfe, Aug 28, 2022
  2. 1/2 test-mergesort: read sort input all at onceRené Scharfe, Aug 28, 2022
  3. 2/2 test-mergesort: use mem_pool for sort inputRené Scharfe, Aug 28, 2022

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.