Make TreeEntry a namedtuple for clarity.
authorDave Borowitz <dborowitz@google.com>
Mon, 25 Oct 2010 19:44:14 +0000 (12:44 -0700)
committerJelmer Vernooij <jelmer@samba.org>
Mon, 25 Oct 2010 19:44:14 +0000 (12:44 -0700)
commitd0f648dbad73565a69ea52c3520af9db5b7aa36f
tree0cd988e606dbdf8985dfb077ea92da86750b0ad5
parentbf202ac009614bae87205a50d44a7bee206e8ba4
Make TreeEntry a namedtuple for clarity.

This provides a backwards-compatible API with negligible memory and
runtime overhead, and is especially easier to use when dealing with
multiple TreeEntry objects in parallel.

For benchmarks and discussion, see:
https://lists.launchpad.net/dulwich-users/msg00234.html

Change-Id: Ief7f66642e8b8b6a3550e008999af71e9b4b5dcc
Signed-off-by: Jelmer Vernooij <jelmer@samba.org>
dulwich/_objects.c
dulwich/misc.py
dulwich/objects.py
dulwich/tests/test_objects.py