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

[PATCH 0/3] optimize git-contacts

From
Eric Sunshine <sunshine@sunshineco.com>
Date
Aug 9, 2013, 21:39 UTC
Message-ID
<1376084396-53617-1-git-send-email-sunshine@sunshineco.com>

This patch series aims to make contrib/git-contacts faster by reducing the number of expensive git-blame invocations it makes. It does so by taking advantage of git-blame's new ability to accept multiple -L ranges in a single invocation [1] (es/blame-L-twice in 'next').

Some numbers, given a randomly chosen range of commits:
  (before)
  % time git-contacts 25fba78d36be6297^..23c339c0f262aad2 >/dev/null
  real  0m6.142s
  user  0m5.429s
  sys   0m0.356s
  (after)
  % time git-contacts 25fba78d36be6297^..23c339c0f262aad2 >/dev/null
  real  0m2.285s
  user  0m2.093s
  sys   0m0.165s
[1]: http://thread.gmane.org/gmane.comp.version-control.git/231739
Eric Sunshine (3):
  contacts: validate hunk length earlier
  contacts: gather all blame sources prior to invoking git-blame
  contacts: reduce git-blame invocations
 contrib/contacts/git-contacts | 31 ++++++++++++++++++++++---------
 1 file changed, 22 insertions(+), 9 deletions(-)
-- 
1.8.4.rc2.460.ga591f4a
Next: Eric Sunshine
Message 1 of 5 in “optimize git-contacts”
  1. 0/3 optimize git-contactsEric Sunshine, Aug 9, 2013
  2. 1/3 contacts: validate hunk length earlierEric Sunshine, Aug 9, 2013
  3. 2/3 contacts: gather all blame sources prior to invoking git-blameEric Sunshine, Aug 9, 2013
  4. 3/3 contacts: reduce git-blame invocationsEric Sunshine, Aug 9, 2013
  5. Junio C HamanoAug 13, 2013

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.