[tomboy-list] Question about Tomboy
Alex Graveley
alex at beatniksoftware.com
Tue Jul 31 12:17:29 PDT 2007
Looking at the code again, we're still doing this synchronously on
every keypress. It probably makes a lot of sense to do link
highlighting in an idle timeout, after a second or two of inactivity.
Should be pretty straightforward if some someone wants to try...
<for-the-adventurous>
You could an InterruptibleTimeout member in NoteLinkWatcher, and reset
it in OnDeleteRange and OnInsertText. In the timeout's handler, do
the unhighlight/highlight currently being done after each keypress.
You need to keep track of the extents of the region the timeout
handler will scan. This is just a matter of storing start_offset and
end_offset members in NoteLinkWatcher, and in OnDeleteRange and
OnInsertText setting start_offset = Math.Min (start_offset,
start.Offset) amd end_offset = Math.Max (end_offset, end.Offset).
</for-the-adventurous>
-Alex
On 7/31/07, Adam D. Lopresto <adam at pubcrawler.org> wrote:
> On Tue, 31 Jul 2007, Sanford Armstrong wrote:
>
> > Boyd,
> >
> > Ah yes, that's true too, though we haven't quantified what constitutes
> > a LOT, and what the exact performance issues are. But then I suppose
> > memory+swap could also be considered a limiting factor for how many
> > notes you have.
>
> I tested it with ~5000 notes, maybe a year or so ago. There didn't seem to
> be any hard limit, but it did get painfully slow. Startup was pretty bad,
> but what really killed it was (at least at that time), after every character
> typed in any note, the entire list of note titles was scanned to see whether
> I had just typed something that needed to be linked. This made editing
> incredibly painful, and I eventually deleted all the test notes (which I'd
> created mostly to see how it would handle under that kind of load in the
> first place). Haven't looked into the internals, so I don't know whether
> anything has changed recently to make this any better.
>
> >
> > Sandy
> >
> > On 7/31/07, Boyd Timothy <btimothy at gmail.com> wrote:
> > > Sandy,
> > >
> > > Isn't there a problem with a LOT of notes due to the fact that we load
> > > all of them into memory? ...and also that rename watchers/etc. run
> > > through all the notes?
> > >
> > > -Boyd
> > >
> > > On 7/24/07, Sanford Armstrong <sanfordarmstrong at gmail.com> wrote:
> > > > Hey Mike,
> > > >
> > > > On 7/24/07, Mike Webb <pobox522rlyeh at comcast.net> wrote:
> > > > > Hello, I hope it isn't out of line to ask a few questions here. I'm not
> > > > > so much a developer as a person who is interested in Tomboy.
> > > >
> > > > This list is for users, developers, and anyone else interested in
> > > > Tomboy, so you've come to the right place. :-)
> > > >
> > > > > I'm very impressed with the simplicity and utility of Tomboy. I was
> > > > > wondering though, if anybody had experienced, or anticipated, the upper
> > > > > limit of how many notes you could make?
> > > > >
> > > > > I'd like to use Tomboy to keep track of a very long, active project I'm
> > > > > working on, and I was wondering just how much information in how many
> > > > > notes someone would likely be able to keep.
> > > >
> > > > Each Tomboy note is stored in separate *.note file in ~/.tomboy, so
> > > > the only limiting factor is disk space, and whatever restrictions your
> > > > file system might place on the number of files in a directory. In
> > > > practice, people aren't usually affected by these sorts of
> > > > limitations.
> > > >
> > > > Many users have hundreds of Tomboy notes without any problems. If you
> > > > experience any problems as you reach a large number of notes, please
> > > > file Tomboy bugs at bugzilla.gnome.org.
> > > >
> > > > Hope this helps,
> > > > Sandy
> > > > _______________________________________________
> > > > Tomboy-list mailing list
> > > > Tomboy-list at lists.beatniksoftware.com
> > > > http://lists.beatniksoftware.com/listinfo.cgi/tomboy-list-beatniksoftware.com
> > > >
> > >
> > _______________________________________________
> > Tomboy-list mailing list
> > Tomboy-list at lists.beatniksoftware.com
> > http://lists.beatniksoftware.com/listinfo.cgi/tomboy-list-beatniksoftware.com
> >
>
> --
> Adam Lopresto
> http://cec.wustl.edu/~adam/
>
> When facing a difficult task, act as though it is impossible to fail. If
> you're going after Moby Dick, take along the tartar sauce.
> _______________________________________________
> Tomboy-list mailing list
> Tomboy-list at lists.beatniksoftware.com
> http://lists.beatniksoftware.com/listinfo.cgi/tomboy-list-beatniksoftware.com
>
More information about the Tomboy-list
mailing list