Mercurial > hg
comparison mercurial/wireprotov1server.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 | d6569f1e9b37 |
children | 566daffc607d |
comparison
equal
deleted
inserted
replaced
42027:d36a7da96a5a | 42028:0cc9d7918754 |
---|