[tomboy-list] Possible fix for BUG#375687
Iivari Mokelainen
iivari at mokelainen.com
Tue Jul 21 05:41:28 PDT 2009
Hey!
quote from bugzilla: "Tomboy is slow for typing text, especially with
notes that have already lots of words in them." (#375687
<http://bugzilla.gnome.org/show_bug.cgi?id=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
<http://bugzilla.gnome.org/show_bug.cgi?id=507795>, since if the leak is
one of the listeners, it wont be called that many times.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.beatniksoftware.com/pipermail/tomboy-list-beatniksoftware.com/attachments/20090721/d4421112/attachment.htm>
More information about the Tomboy-list
mailing list