{"action":"opened","issue":{"url":"https://api.github.com/repos/mbbill/undotree/issues/64","repository_url":"https://api.github.com/repos/mbbill/undotree","labels_url":"https://api.github.com/repos/mbbill/undotree/issues/64/labels{/name}","comments_url":"https://api.github.com/repos/mbbill/undotree/issues/64/comments","events_url":"https://api.github.com/repos/mbbill/undotree/issues/64/events","html_url":"https://github.com/mbbill/undotree/issues/64","id":161239631,"number":64,"title":"Debounce to improve perf?","user":{"login":"wincent","id":7074,"avatar_url":"https://avatars.githubusercontent.com/u/7074?v=3","gravatar_id":"","url":"https://api.github.com/users/wincent","html_url":"https://github.com/wincent","followers_url":"https://api.github.com/users/wincent/followers","following_url":"https://api.github.com/users/wincent/following{/other_user}","gists_url":"https://api.github.com/users/wincent/gists{/gist_id}","starred_url":"https://api.github.com/users/wincent/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wincent/subscriptions","organizations_url":"https://api.github.com/users/wincent/orgs","repos_url":"https://api.github.com/users/wincent/repos","events_url":"https://api.github.com/users/wincent/events{/privacy}","received_events_url":"https://api.github.com/users/wincent/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2016-06-20T16:38:41Z","updated_at":"2016-06-20T16:38:41Z","closed_at":null,"body":"I switched from Gundo to undotree a while back because:\r\n\r\n- No Python dependency.\r\n- More compact display.\r\n- More info in display (saved states, last saved etc).\r\n- More configurable(?), or at least, I think I've been able to configure it to behave pretty much the same as Gundo.\r\n- Undotree is live updated as you edit.\r\n\r\nOne thing, however, makes it very significantly slower, especially when the diff view is open, and that is the way the file contents are immediately updated whenever you navigate to a new version in undotree (in Gundo, the file contents only get updated when you commit to choosing a version). What do you think of \"debouncing\" mappings (via a `CursorHold` autocmd) such that if I hold down the `j`, key, for instance, it won't actually update the diff view and edited file until I let go of the button?\r\n\r\nAnother possibility would be to make an option that skips updating the file contents until you press a key to accept a particular version, basically matching what Gundo does.\r\n\r\nThoughts? I could probably submit a PR for either of both of these ideas, based on your recommendation (disclaimer: haven't even looked at the code yet, so unsure of the complexity)."}}
{"actor":{"display_login":"wincent"}}