Mercurial > hg
comparison mercurial/progress.py @ 42028:0cc9d7918754
discovery: prevent deleting items from a dictionary
Removing elements from Python dictionary is expensive. So let's prevent adding
them instead.
I added a newline to make code look a bit better.
Differential Revision: https://phab.mercurial-scm.org/D6146
author | Pulkit Goyal <pulkit@yandex-team.ru> |
---|---|
date | Sun, 17 Mar 2019 18:43:27 +0300 |
parents | 7b80406b8271 |
children | 2372284d9457 |
comparison
equal
deleted
inserted
replaced
42027:d36a7da96a5a | 42028:0cc9d7918754 |
---|