Skip to content

Commit

Permalink
Switch to dict when possible for increased performance
Browse files Browse the repository at this point in the history
  • Loading branch information
bartvm committed Mar 12, 2015
1 parent f52d767 commit d1939bd
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions toolz/dicttoolz.py
Expand Up @@ -59,6 +59,7 @@ def merge_with(func, *dicts):
result = OrderedDict()
for d in dicts:
if not isinstance(d, OrderedDict):
result = dict(result)
dict_ = dict
for k, v in iteritems(d):
if k not in result:
Expand Down

0 comments on commit d1939bd

Please sign in to comment.