1. 09 10月, 2005 2 次提交
    • R
      Reduce memory usage in git-update-server-info. · f22ca7c5
      robfitz@273k.net 提交于
      Modify parse_object_cheap() to also free all the entries from the tree
      data structures.
      Signed-off-by: NRobert Fitzsimons <robfitz@273k.net>
      Signed-off-by: NJunio C Hamano <junkio@cox.net>
      f22ca7c5
    • L
      Create object subdirectories on demand · 230f1322
      Linus Torvalds 提交于
      This makes it possible to have a "sparse" git object subdirectory
      structure, something that has become much more attractive now that people
      use pack-files all the time.
      
      As a result of pack-files, a git object directory doesn't necessarily have
      any individual objects lying around, and in that case it's just wasting
      space to keep the empty first-level object directories around: on many
      filesystems the 256 empty directories will be aboue 1MB of diskspace.
      
      Even more importantly, after you re-pack a project that _used_ to be
      unpacked, you could be left with huge directories that no longer contain
      anything, but that waste space and take time to look through.
      
      With this change, "git prune-packed" can just do an rmdir() on the
      directories, and they'll get removed if empty, and re-created on demand.
      
      This patch also tries to fix up "write_sha1_from_fd()" to use the new
      common infrastructure for creating the object files, closing a hole where
      we might otherwise leave half-written objects in the object database.
      
      [jc: I unoptimized the part that really removes the fan-out directories
       to ease transition.  init-db still wastes 1MB of diskspace to hold 256
       empty fan-outs, and prune-packed rmdir()'s the grown but empty directories,
       but runs mkdir() immediately after that -- reducing the saving from 150KB
       to 146KB.  These parts will be re-introduced when everybody has the
       on-demand capability.]
      Signed-off-by: NLinus Torvalds <torvalds@osdl.org>
      Signed-off-by: NJunio C Hamano <junkio@cox.net>
      230f1322
  2. 08 10月, 2005 4 次提交
  3. 07 10月, 2005 12 次提交
  4. 06 10月, 2005 9 次提交
  5. 05 10月, 2005 8 次提交
  6. 04 10月, 2005 5 次提交