Mercurial > hg
diff mercurial/crecord.py @ 27063:37e1fdcb271c
context: optimize _parents()
This patch avoids some extra attribute lookups and list mutations.
This micro-optimization seems to result in a minor speedup for `hg log`
on my Firefox repo:
before: 25.35s
after: 24.91s
delta: -0.44s (98% of original)
Not the biggest gain. But every little bit helps.
author | Gregory Szorc <gregory.szorc@gmail.com> |
---|---|
date | Sat, 21 Nov 2015 19:04:12 -0800 |
parents | 1aee2ab0f902 |
children | 8d3c5797a175 7cc654610204 |