author | Michael Ellerman <michael@ellerman.id.au> | |
Wed, 30 May 2007 04:47:09 +0000 (14:47 +1000) | ||
committer | Junio C Hamano <gitster@pobox.com> | |
Fri, 8 Jun 2007 09:37:18 +0000 (02:37 -0700) | ||
commit | 225696af2ceaa2e06345954003eda742a76c4e0a | |
tree | f9f2b75869094f67d832cfd22377ed7f830f8e54 | tree | snapshot |
parent | 709b148a907e68bfb57808de8f65b186cc9a5e21 | commit | diff |
gitview: Define __slots__ for Commit
Define __slots__ for the Commit class. This reserves space in each Commit
object for only the defined variables. On my system this reduces heap usage
when viewing a kernel repo by 12% ~= 55868 KB.
Signed-off-by: Michael Ellerman <michael@ellerman.id.au>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Define __slots__ for the Commit class. This reserves space in each Commit
object for only the defined variables. On my system this reduces heap usage
when viewing a kernel repo by 12% ~= 55868 KB.
Signed-off-by: Michael Ellerman <michael@ellerman.id.au>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
contrib/gitview/gitview | diff | blob | history |