Skip to content

Reduce index load time

Nguyễn Thái Ngọc Duy git 4 versions In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v4 Latest9 patches 2 repliesIn review
  2. v39 patches 3 repliesSuperseded
  3. v25 patches 1 replySuperseded
Earlier versions · 1
VersionPostedPatchesRepliesStatus
v18 patches8 repliesSuperseded

Patches in v4 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/9trace.c: add GIT_TRACE_PACK_STATS for pack usage statisticsDocumentation/git.txt cache.h git.c +3 more+44 -00 replies
2/9read-cache.c: fix constness of verify_hdr()read-cache.c+1 -10 replies
3/9read-cache: allow to keep mmap'd memory after readingcache.h read-cache.c+15 -10 replies
4/9index-helper: new daemon for caching index and related stuff.gitignore Documentation/git-index-helper.txt Makefile +7 more+408 -91 reply
5/9trace.c: add GIT_TRACE_INDEX_STATS for index statisticsDocumentation/git.txt cache.h read-cache.c +1 more+22 -10 replies
6/9index-helper: add --strictDocumentation/git-index-helper.txt cache.h index-helper.c +1 more+64 -30 replies
7/9daemonize(): set a flag before exiting the main processbuiltin/gc.c cache.h daemon.c +1 more+6 -40 replies
8/9index-helper: add --detachDocumentation/git-index-helper.txt index-helper.c+11 -20 replies
9/9index-helper: add Windows supportconfig.mak.uname index-helper.c read-cache.c +1 more+159 -00 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v4 yet.

Read the v4 thread

Cover letter [PATCH v4 0/9] Reduce index load time

This is the rebased version since last time [1] with s/free_index_shm/release_index_shm/ as suggested by David Turner. It introduces a daemon that can cache index data in memory so that subsequent git processes can avoid reading (and more importantly, verifying) the index from disk. Together with split-index it should keep index I/O cost down to minimum. The series can also be found at [2].

One of the factors that affected my design was Windows support. We now have Dscho back, he can evaluate my approach for Windows.

This daemon is the foundation for watchman support later to reduce refresh time. To be posted shortly after this.

[0] http://mid.gmane.org/[email protected]
[2] http://github.com/pclouds/git/commits/index-helper

Nguyễn Thái Ngọc Duy (9):
trace.c: add GIT_TRACE_PACK_STATS for pack usage statistics read-cache.c: fix constness of verify_hdr()
read-cache: allow to keep mmap'd memory after reading
index-helper: new daemon for caching index and related stuff trace.c: add GIT_TRACE_INDEX_STATS for index statistics
index-helper: add --strict
daemonize(): set a flag before exiting the main process
index-helper: add --detach
index-helper: add Windows support

 .gitignore                               |   1 +
 Documentation/git-index-helper.txt (new) |  56 +++++++
 Documentation/git.txt                    |   4 +
 Makefile                                 |   9 ++
 builtin/gc.c                             |   2 +-
 cache.h                                  |  12 +-
 config.mak.uname                         |   3 +
 daemon.c                                 |   2 +-
 git-compat-util.h                        |   1 +
 git.c                                    |   1 +
 index-helper.c (new)                     | 264 +++++++++++++++++++++++++++++++
 read-cache.c                             | 147 ++++++++++++++++-
 setup.c                                  |   4 +-
 sha1_file.c                              |  24 +++
 shm.c (new)                              | 163 +++++++++++++++++++
 shm.h (new)                              |  23 +++
 trace.c                                  |  16 ++
 trace.h                                  |   1 +
 18 files changed, 721 insertions(+), 12 deletions(-)
 create mode 100644 Documentation/git-index-helper.txt
 create mode 100644 index-helper.c
 create mode 100644 shm.c
 create mode 100644 shm.h
Signature · 1 line
2.2.0.513.g477eb31