Django has a Sorted dictionary implementation that recently underwent some
micro optimizations. However, these shouldn't be necessary! Ideally we
should be able to make the original version every bit as fast as the new
one (and eventually even faster).
http://code.djangoproject.com/changeset/11494 is the first changeset. We
can't do a ton here.
http://code.djangoproject.com/changeset/11495 we should be able to do better
on. Using an explicit list comprehension should be no slower than using
map.
http://code.djangoproject.com/changeset/11815 finally rewrites the
expression from a super().__getitem__ to self.__getitem__. Since
self.__getitem__ is dict.__getitem__ we should eventually be able to make
that blazing fast.
Original issue reported on code.google.com by alex.gay...@gmail.com on 16 Dec 2009 at 10:41
Original issue reported on code.google.com by
alex.gay...@gmail.com
on 16 Dec 2009 at 10:41