Skip to content

fast-import: cache oe more often

Dmitry Ivankov git 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest8 patches 4 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/8fast-import: cache oe in file_change_mfast-import.c+14 -80 replies
2/8fast-import: cache oe in parse_new_tagfast-import.c+5 -20 replies
3/8fast-import: cache oe in note_change_nfast-import.c+17 -130 replies
4/8fast-import: extract common sha1_file access functionsfast-import.c+34 -480 replies
5/8fast-import: tiny optimization in read_marksfast-import.c+2 -40 replies
6/8fast-import: cache oe in load_treefast-import.c+17 -30 replies
7/8fast-import: cache oe in cat_blobfast-import.c+13 -120 replies
8/8fast-import: cache objects while dereferencingfast-import.c+17 -140 replies

Reviews trailers per patch

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

Read the v1 thread

Cover letter [PATCH 0/8] fast-import: cache oe more often

fast-import keeps a struct object_entry for each object written to it's pack. This is to keep type, pack-coordinates and delta_depth. struct object_entry is also used to cache this metadata for objects that exist outside fast-import's pack ('old' objects). struct object_entry has a small fixed size and thus it should be reasonable to cache any 'old' object metadata retrieval to save the disk i/o.

Also it is a step toward making fast-import identify objects via struct object_entry rather than sha1. One pointer takes less than 20 bytes, it'll be later possible to have references to objects that don't yet have sha1 computed (fast-import with threads future).

Dmitry Ivankov (8):
fast-import: cache oe in file_change_m
fast-import: cache oe in parse_new_tag
fast-import: cache oe in note_change_n
fast-import: extract common sha1_file access functions
fast-import: tiny optimization in read_marks
fast-import: cache oe in load_tree
fast-import: cache oe in cat_blob
fast-import: cache objects while dereferencing

 fast-import.c |  177 +++++++++++++++++++++++++++++++--------------------------
 1 files changed, 96 insertions(+), 81 deletions(-)
Signature · 1 line
1.7.3.4