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

Patch id tests and diff performance optimization

From
Clemens Buchacher <drizzd@aon.at>
Date
Sep 19, 2010, 09:59 UTC
Message-ID
<1284890369-4136-1-git-send-email-drizzd@aon.at>
Hi,
I finally came around to de-bashify my patch ID test script. Here we go.

[PATCH 1/3] add rebase patch id tests [PATCH 2/3] do not search functions for patch ID [PATCH 3/3] use cache for function names in hunk headers

The first patch adds correctness and (optional) performance tests for the patch "hash binary sha1 into patch id" http://thread.gmane.org/gmane.comp.version-control.git/153468/focus=155919 .

The test reveals a performance problem with the search for function names for the hunk headers. This is fixed for patch ID computation by the second patch and for diff in general by the third patch.

Clemens ---

 diff.c                     |    2 +-
 t/t3419-rebase-patch-id.sh |  109 ++++++++++++++++++++++++++++++++++++++++++++
 xdiff/xemit.c              |   44 +++++++++++++-----
 3 files changed, 142 insertions(+), 13 deletions(-)
Next: Clemens Buchacher
Message 1 of 13 in “Patch id tests and diff performance optimization”
  1. Clemens BuchacherSep 19, 2010
  2. 1/3 add rebase patch id testsClemens Buchacher, Sep 19, 2010
  3. 2/3 do not search functions for patch IDClemens Buchacher, Sep 19, 2010
  4. 3/3 use cache for function names in hunk headersClemens Buchacher, Sep 19, 2010
  5. Sverre RabbelierSep 19, 2010
  6. Clemens BuchacherSep 20, 2010
  7. Sverre RabbelierSep 20, 2010
  8. 3/3 use cache for function names in hunk headersClemens Buchacher, Sep 23, 2010
  9. René ScharfeSep 26, 2010
  10. Clemens BuchacherSep 26, 2010
  11. René ScharfeSep 26, 2010
  12. Junio C HamanoSep 27, 2010
  13. Junio C HamanoSep 30, 2010

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.