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

[PATCH v2 0/3] Improving performance of git clean

From
Erik Elfström <erik.elfstrom@gmail.com>
Date
Apr 11, 2015, 16:43 UTC
Message-ID
<1428770587-9674-2-git-send-email-erik.elfstrom@gmail.com>
In-Reply-To
<1428770587-9674-1-git-send-email-erik.elfstrom@gmail.com>

v1 of the patch can be found here: http://thread.gmane.org/gmane.comp.version-control.git/266839/focus=266839

changes in v2:
* fixed commit message,
  "p7300: added performance tests for clean"
  change to:
  "p7300: add performance tests for clean"
* simplified test code
* removed non portable ls -A in test
* removed non portable $(seq ) in test
* fixed missing " || return $?" in test
* fixed missing sub shell for 'cd' command in test
* fixed broken && chains in test
* added assert new clean.c:is_git_repository to guard aginst
  negative array index
* use size_t instead of int for strbuf->len
fixes held back for cleanup patches:
* fixed existing broken && chains
* added assert in existing code to guard gainst
  negative array index

Thanks to Eric Sunshine and Torsten Bögershausen for the very helpful review!

Erik Elfström (3):
  t7300: add tests to document behavior of clean and nested git
  p7300: add performance tests for clean
  clean: improve performance when removing lots of directories
 builtin/clean.c       | 24 ++++++++++++++---
 t/perf/p7300-clean.sh | 37 ++++++++++++++++++++++++++
 t/t7300-clean.sh      | 72 +++++++++++++++++++++++++++++++++++++++++++++++++++
 3 files changed, 129 insertions(+), 4 deletions(-)
 create mode 100755 t/perf/p7300-clean.sh
-- 
2.4.0.rc0.37.ga3b75b3
Previous: Erik ElfströmNext: Erik Elfström
Message 2 of 13 in “Improving performance of git clean”
  1. 0/3 Improving performance of git cleanErik Elfström, Apr 11, 2015
  2. 0/3 Improving performance of git cleanErik Elfström, Apr 11, 2015
  3. 1/3 t7300: add tests to document behavior of clean and nested gitErik Elfström, Apr 11, 2015
  4. 2/3 p7300: add performance tests for cleanErik Elfström, Apr 11, 2015
  5. Thomas GummererApr 11, 2015
  6. erik elfströmApr 12, 2015
  7. Thomas GummererApr 12, 2015
  8. 3/3 clean: improve performance when removing lots of directoriesErik Elfström, Apr 11, 2015
  9. Junio C HamanoApr 15, 2015
  10. erik elfströmApr 17, 2015
  11. Jeff KingApr 17, 2015
  12. Junio C HamanoApr 17, 2015
  13. Eric SunshineApr 15, 2015

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.