diff mercurial/subrepoutil.py @ 39087:f90b333e79cb

revlog: filter out "invalid" delta base candidates There are bases that we know won't produce a good delta chain. For example, if the base is already bigger than twice the size of the text we store, we know the resulting delta chain will never be valid. We might make the check a bit more powerful and generic in the future, but this looks a good start. In particular, empty file (size 0) will never find a good base, so we should stop spending time trying to find one.
author Boris Feld <boris.feld@octobus.net>
date Fri, 27 Jul 2018 12:08:10 +0200
parents b94fecf4cd8c
children 876494fd967d
line wrap: on
line diff