rev-branch-cache: stop truncating cache file
Truncating the file prevent the safe use of mmap. So instead of overwrite the existing data. If more than 20% of the file is to be overwritten, we rewrite the whole file instead. Such whole rewrite is done by replacing the old one with a new one, so mmap of the old file would be affected. This prepare a more aggressive use of mmap in later patches.
parent
7032da075572
No related branches found
No related tags found
Showing
- mercurial/branching/rev_cache.py 37 additions, 7 deletionsmercurial/branching/rev_cache.py
- tests/test-acl.t 8 additions, 8 deletionstests/test-acl.t
- tests/test-branches.t 6 additions, 6 deletionstests/test-branches.t
- tests/test-rebase-conflicts.t 2 additions, 2 deletionstests/test-rebase-conflicts.t
- tests/test-strip.t 1 addition, 1 deletiontests/test-strip.t
Loading
Please register or sign in to comment