Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

As long as we're micro-optomizing, do it right -- using map() shaves …

…another dozen or so seconds off the test suite run time.

git-svn-id: http://code.djangoproject.com/svn/django/trunk@11495 bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information...
commit c33355d86aaf96faba44febb02395d8d12c9cd5b 1 parent 9d1a7c2
@jacobian jacobian authored
Showing with 1 addition and 2 deletions.
  1. +1 −2  django/utils/datastructures.py
View
3  django/utils/datastructures.py
@@ -117,8 +117,7 @@ def iterkeys(self):
return iter(self.keyOrder)
def values(self):
- super_get = super(SortedDict, self).__getitem__
- return [super_get(k) for k in self.keyOrder]
+ return map(super(SortedDict, self).__getitem__, self.keyOrder)
def itervalues(self):
for key in self.keyOrder:
Please sign in to comment.
Something went wrong with that request. Please try again.