comparison mercurial/state.py @ 38513:6db38c9d7e00

revlog: efficient implementation of 'descendant' Iterating over descendants is costly, because there are no "parent -> children" pointers. Walking the other way around is much more efficient, especially on large repositories, where descendant walks can cost seconds. And the other hand, common ancestors code follows links in the right direction and has a compiled implementation. In real life usage, this saved up to 80s during some pull operations, where descendant test happens in extension code.
author Boris Feld <boris.feld@octobus.net>
date Fri, 22 Jun 2018 00:05:20 +0100
parents 6f67bfe4b82f
children 5bfab9400daf
comparison
equal deleted inserted replaced
38512:99f864b34451 38513:6db38c9d7e00