]> source.dussan.org Git - jgit.git/commit
PackBitmapIndex: Remove convertedBitmaps in the Remapper 55/161455/8
authorYunjie Li <yunjieli@google.com>
Thu, 23 Apr 2020 22:11:14 +0000 (15:11 -0700)
committerYunjie Li <yunjieli@google.com>
Wed, 13 May 2020 00:32:15 +0000 (17:32 -0700)
commite250482c7af5e1750b241683a1afde35ed020fee
treef855681eb6282277ca357cc50ea8c9a9b1f5f50e
parentdcb02654360e7617380361a3b755dc380c239edf
PackBitmapIndex: Remove convertedBitmaps in the Remapper

The convertedBitmaps serves for time-optimization purpose. But it's
actually not saving time much but using lots of memory. So remove the
field here to save memory.

Currently the remapper class is only used in the construction of the
bitmap index file. And during the preparation of the file, we're only
getting bitmaps from the remapper when finding objects accessible from
a commit, so bitmap associated with each commit will only be fetched once
and thus the convertedBitmaps would hardly be read, which means that it's
not saving time.

Change-Id: Ic942a8e485135fb177ec21d09282d08ca6646fdb
Signed-off-by: Yunjie Li <yunjieli@google.com>
org.eclipse.jgit/src/org/eclipse/jgit/internal/storage/file/PackBitmapIndexRemapper.java