summaryrefslogtreecommitdiff
path: root/refs.c
diff options
context:
space:
mode:
authorLibravatar Paul Mackerras <paulus@samba.org>2005-08-11 09:56:23 +1000
committerLibravatar Paul Mackerras <paulus@samba.org>2005-08-11 09:56:23 +1000
commitb664550c066810b770ad3e19cafe2fbdd42c6793 (patch)
tree602e0a5b32c67870a64577f5704e9a474bb98846 /refs.c
parentOnly do an update every 100 commits when drawing the graph. (diff)
downloadtgif-b664550c066810b770ad3e19cafe2fbdd42c6793.tar.xz
Refine the update heuristic to improve responsiveness a bit.
The previous commit improved performance a lot but also meant that we waited longer to see something drawn. This refines the heuristics for when to call update so that (1) when we have finished processing a bufferfull of information from git-rev-list, we call update if enough time has elapsed, regardless of how many commits we've drawn, and (2) the number of commits drawn between updates scales with the total number of commits drawn: 1 for 1-99 commits, 10 for 100-9999 commits, or 100 for >= 10000 commits.
Diffstat (limited to 'refs.c')
0 files changed, 0 insertions, 0 deletions