diff options
author | Raja R Harinath <harinath@hurrynot.org> | 2010-07-10 16:20:04 +0530 |
---|---|---|
committer | Raja R Harinath <harinath@hurrynot.org> | 2010-07-10 19:22:23 +0530 |
commit | ffc5270a6fa106fecad1a6a9f1520ca8f075c6b7 (patch) | |
tree | f462a048af9b9bba21836c799df09b2eb9f11611 /src/main.cpp | |
parent | 45d4785557290facfa344e7fb4586fca41a84bbe (diff) | |
download | svn2git-ffc5270a6fa106fecad1a6a9f1520ca8f075c6b7.tar svn2git-ffc5270a6fa106fecad1a6a9f1520ca8f075c6b7.tar.gz svn2git-ffc5270a6fa106fecad1a6a9f1520ca8f075c6b7.tar.bz2 svn2git-ffc5270a6fa106fecad1a6a9f1520ca8f075c6b7.tar.xz svn2git-ffc5270a6fa106fecad1a6a9f1520ca8f075c6b7.zip |
Reduce size of fast-import marks file by not persisting file-level marks
Use two allocators for marks, one persistent commit counter that starts at 0
and counts up commits, and a transitional counter, for files, that counts down
from maxMark, and is reset on each SVN revision.
Note that the marks file will still have marks for some, but not all, files.
The number of such marks is limited by the size of the SVN revision that affects
the most files.
For instance, this changed the size of one marks file from 19M to 3.2M.
fast-import issues: We currently set maxMark = (1<<20)-1. Anything large seems
to trigger a bug in the sparse array dumping routine in git-fast-import in
certain versions of git.
Diffstat (limited to 'src/main.cpp')
0 files changed, 0 insertions, 0 deletions