This is an archive of the discontinued Mercurial Phabricator instance.

discovery: prevent deleting items from a dictionary
ClosedPublic

Authored by pulkit on Mar 17 2019, 11:49 AM.

Details

Summary

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.

Diff Detail

Repository
rHG Mercurial
Lint
Automatic diff as part of commit; lint not applicable.
Unit
Automatic diff as part of commit; unit tests not applicable.

Event Timeline

pulkit created this revision.Mar 17 2019, 11:49 AM
This revision was automatically updated to reflect the committed changes.