]> source.dussan.org Git - jgit.git/commit
DfsInserter: populate full size on object insertion 91/196491/29
authorIvan Frade <ifrade@google.com>
Fri, 7 Oct 2022 21:21:48 +0000 (14:21 -0700)
committerIvan Frade <ifrade@google.com>
Fri, 14 Jul 2023 17:25:20 +0000 (10:25 -0700)
commit4d2a003b913edc6981f4f73354c0ad4f52716303
tree704ddbda90782f610099b413e9626eda8098102a
parent12a4a4ccaadefa7e2dd157ca2bd211ef460b825c
DfsInserter: populate full size on object insertion

We need the full size of the object to populate the object size index
later.

Save the size the PackedObjectInfo while adding objects to the
pack. Then we don't need to re-read it from the pack at indexing time.

Change-Id: I5bd7ad402df60b4637038def8ef7be2ab45faf87
org.eclipse.jgit.test/tst/org/eclipse/jgit/internal/storage/dfs/DfsInserterTest.java
org.eclipse.jgit/src/org/eclipse/jgit/internal/storage/dfs/DfsInserter.java