|
View:
New views
3 Messages
—
Rating Filter:
Alert me
|
|
|
Possible fix for BUG#375687Hey!
quote from bugzilla: "Tomboy is slow for typing text, especially with notes that have already lots of words in them." (#375687) Since 'a change' to the text is a single insertion (be it a character or a whole sentce by pasting), we could add a timer for acting on insertion. Old behaviour: user typed 's' all listeners for events are called user typed 'l' all listeners for events are called ... proposed behaviour : user typed 'f' a timer is set to call all the listeners in N ms user typed 'a' the timer is reset, eg the restarted to be called in N ms. no input for N ms. all listeners for events are called ... with that when typing fast the timer will be reset each time, and only when user stops inserting text listeners are called. could possible ease the situation with #507795, since if the leak is one of the listeners, it wont be called that many times. _______________________________________________ Tomboy-list mailing list Tomboy-list@... http://lists.beatniksoftware.com/listinfo.cgi/tomboy-list-beatniksoftware.com |
|
|
Re: Possible fix for BUG#375687Hi Iivari,
This sounds like a good approach. Care to work up a patch? ;-) Sandy On Tue, Jul 21, 2009 at 5:41 AM, Iivari Mokelainen<iivari@...> wrote: > Hey! > > quote from bugzilla: "Tomboy is slow for typing text, especially with notes > that have already lots of words in them." (#375687) > > Since 'a change' to the text is a single insertion (be it a character or a > whole sentce by pasting), we could add a timer for acting on insertion. > > Old behaviour: > user typed 's' > all listeners for events are called > user typed 'l' > all listeners for events are called > ... > > > proposed behaviour : > user typed 'f' > a timer is set to call all the listeners in N ms > user typed 'a' > the timer is reset, eg the restarted to be called in N ms. > no input for N ms. > all listeners for events are called > ... > > with that when typing fast the timer will be reset each time, and only when > user stops inserting text listeners are called. > > could possible ease the situation with #507795, since if the leak is one of > the listeners, it wont be called that many times. Tomboy-list mailing list Tomboy-list@... http://lists.beatniksoftware.com/listinfo.cgi/tomboy-list-beatniksoftware.com |
|
|
|
| Free embeddable forum powered by Nabble | Forum Help |