eberle1080/dulwich-py3k — comment on commit 6ac57123389a73e3fa1da4ac9a15c0d223dc8b3b
File:  line 0
By jelmer:

Is this improving an actual issue you're hitting? I'm a bit wary about adding a C extension for something that we don't need - it increases the risk of segfaults and memory leaks. Adding extra objects also means more memory use in the common case.

My interpretation of this comment is using something like this (a genexp)

self._entries = dict((n, (m, s)) for n, m, s in parsed_entries)

rather than list comprehension:

self._entries = dict([(n, (m, s)) for n, m, s in parsed_entries])

which creates a duplicate copy of the tree entries.