author | Paul Mackerras <paulus@samba.org> | |
Wed, 16 Aug 2006 10:02:32 +0000 (20:02 +1000) | ||
committer | Paul Mackerras <paulus@samba.org> | |
Wed, 16 Aug 2006 10:02:32 +0000 (20:02 +1000) | ||
commit | d1e46756d312f65613863a41c256d852fcde330c | |
tree | 99f4efb3c39afed82052479e235701de59441c1c | tree | snapshot |
parent | ceadfe90c64b293a653bcbbce83283d2665d7cf9 | commit | diff |
gitk: Improve responsiveness while reading and layout out the graph
This restructures layoutmore so that it can take a time limit and do
limited amounts of graph layout and graph optimization, and return 1
if it exceeded the time limit before finishing everything it could do.
Also getcommitlines reads at most half a megabyte each time, to limit
the time it spends parsing the commits to about a tenth of a second.
Also got rid of the unused ncmupdate variable while I was at it.
Signed-off-by: Paul Mackerras <paulus@samba.org>
This restructures layoutmore so that it can take a time limit and do
limited amounts of graph layout and graph optimization, and return 1
if it exceeded the time limit before finishing everything it could do.
Also getcommitlines reads at most half a megabyte each time, to limit
the time it spends parsing the commits to about a tenth of a second.
Also got rid of the unused ncmupdate variable while I was at it.
Signed-off-by: Paul Mackerras <paulus@samba.org>
gitk | diff | blob | history |