On Mon, Mar 15, 2010 at 8:19 PM, Dave Grijalva <[email protected]> wrote:
There may be a middle ground. Perhaps we could throttle updates when the > app is not in focus or something like that. I like to keep the gitx window > open on my second display so I can see at a glance what's changing. > Requiring the user to focus on the window and away isn't always the best > option. It's one of the worst things about TextMate in my opinion. > Listening to the event stream doesn't seem to be very expensive. We just > need to be careful what we do in response. > I don't imagine myself finding that very useful but if it's cheap and we can filter out the stuff in '.gitignore' along with the '.git' folder, then I don't see why not. The litmus test here should probably be that the CPU(s) remain idle while GitX is in the background. If that's not doable then it might be best to throttle it such that it only checks in 2 or 3 times a second or so. The other issue I see here is that the refresh itself might prove annoying if it's kicking off before all the changes have propagated. So maybe something where we wait for events and then hold off on refreshing until things are idle again. Mind you I haven't played with or looked at this code at all. Just thinking out loud. Kevin
