gitk: Limit how often we change the canvas scrolling region
authorPaul Mackerras <paulus@samba.org>
Tue, 31 Oct 2006 04:00:53 +0000 (15:00 +1100)
committerPaul Mackerras <paulus@samba.org>
Sat, 23 Jun 2007 10:58:06 +0000 (20:58 +1000)
commita2c22362cc2c0bb0451bc8098b3ba0c9353ebe02
treefe5336976069b666488eefc303ab2ca2d80cd2f3
parent6fb735aedb25eade3d523053cb05c030a1cc06b3
gitk: Limit how often we change the canvas scrolling region

For some unknown reason, changing the scrolling region on the canvases
provokes multiple milliseconds worth of computation in the X server,
and this can end up slowing gitk down significantly.  This works around
the problem by limiting the rate at which we update the scrolling region
after the first 100 rows to at most 2 per second.

Signed-off-by: Paul Mackerras <paulus@samba.org>
gitk