Hi Norman,

| > 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.

Great! Sounds perfect! But... being new to RB
I haven't yet explored dictionaries,
let alone dictionaries of dictionaries! :)

I looked at the dictionary example that ships with
RB (the key value pair example) but I'm not sure
I exactly understand the point of that example as
all it seems to do is update a listbox, but anyway,
from the help file I can see it's a way of storing
key and value pairs.

Do you mean to use multiple dictionaries - much like
relational databases such as...

DICTIONARY 1 - LINE NUMBERS
key = 1, Value = 1
key = 2, Value = 1
key = 3, Value = 2
...

DICTIONARY 2 - PARAGRAPHS
(referenced from the above dict. values)
key = 1, Value = "the first paragraph which spans 2 lines)
...

etc?

If so, that sounds like a great idea as it would
be easy to extend that data structure by adding
extra dictionaries to represent different things
I needed, such as x, y, font etc - all referenced
from another dictionary.

Is that what you mean Norman?

The only worry I have with that is that I would have
to do numerous lookups from different dictionaries
if I wanted to get say: the text, x, y, font, style,
page number etc, but if all of that info were in a
database I'd get all the values back with one call.

Thoughts?

Thanks, by the way.

Mark.


-- 
No virus found in this outgoing message.
Checked by AVG Free Edition.
Version: 7.1.385 / Virus Database: 268.2.6/287 - Release Date: 21/03/2006
 

_______________________________________________
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>

Reply via email to