Mercurial > hg
comparison tests/test-debugextensions.t @ 31097:4a1486c73fdf
manifest: check 'if x is None' instead of 'if not x'
The old code here would end up executing __len__ on a tree manifest to determine
if 'not _data' was true or not. This was very expensive on large repos. Since
this function just cares about memoization, we can just check 'if _data is None'
instead and save a bunch of time.
author | Durham Goode <durham@fb.com> |
---|---|
date | Sun, 26 Feb 2017 10:16:47 -0800 |
parents | 4c28ddda5d48 |
children | a543d17dce03 |
comparison
equal
deleted
inserted
replaced
31096:356937ea7a02 | 31097:4a1486c73fdf |
---|