On Mar 22, 2006, at 10:24 AM, Mark O'Neill wrote:
Hi All,
As some of you may know, I'm building a WYSIWYG
editor using a canvas control.
What I would like to know is - what, in your
opinion is the fastest / best way to store my
data when the app is running.
I need access to paragraph styles (that I'm
storing) line numbers, x & y positions etc
as well as the actual text that will be typed
in.
Displaying the text is not going to be too much
of a problem thanks to all your help, but
when editing text on say page 200 of 300 I need
quick read access to the paragraph text when
the user is typing and also quick write to the
data so I can re-render the pages.
I was going to do all this with XML as that seems
logical in my mind but I'm not sure if it's going
to be quick enough?
RB Database? Listbox? XML Structure? Some sort
of an array? Other?
Any thoughts?
Any help would be appreciated, as always.
Custom designed structures made from dictionaries of dictionaries ?
They are fast.
I just wrote a subclass of XML Reader that reads the iTunes plist that
has 1500 tracks into memory in a matter of a couple of seconds into
dictionaries of dictionaries.
The regular XML parser takes much longer than this when it tries to
read the whole plist file.
_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>
Search the archives of this list here:
<http://support.realsoftware.com/listarchives/lists.html>