views.dag: memoize() expensive graph drawing methods
commit3dce4c97322d208421a0d786968f4b0d89add17b
authorDavid Aguilar <davvid@gmail.com>
Tue, 8 Jun 2010 21:11:51 +0000 (8 14:11 -0700)
committerDavid Aguilar <davvid@gmail.com>
Tue, 8 Jun 2010 21:11:51 +0000 (8 14:11 -0700)
tree0524cca29796521e1964dd9aaba21813fb464394
parent6c47625e0879cc26e66b64b87178e99529cb9b7c
views.dag: memoize() expensive graph drawing methods

shape() and boundingRect() were heavy hitters when profiling the
'git dag' using cProfile.  Use memoize() to optimize away their
expensive calculations.

Signed-off-by: David Aguilar <davvid@gmail.com>
cola/views/dag.py