From: Marc Zeedar <[EMAIL PROTECTED]>
Date: Thu, 15 Feb 2007 16:32:56 -0800
On Feb 15, 2007, at 3:30 PM, Tim Jones wrote:
Then, to check for the existence, during the display methods I use
If d.KeyExists theList(i) Then ...
My question is - with potentially 10K selection lines, is this an
abuse of the dictionary class? Will it be faster than parsing an
array of the same data?
This is exactly what dictionaries are for!
As a test once, I loaded 200K spelling words in a dictionary and
checked a user's typing in an editfield for spelling errors. Turned
out my code for retrieving the last full word typed (not as simple as
it sounds) took much longer than the superfast dictionary look-up. I
had to get that optimized, but eventually I had it so the user could
type full speed without the live spelling checking slowing things
down. Pretty cool! I just love dictionaries.
ElfDataDictionary is about 10x faster than RB's dictionary and it
does spell checking via the ElfDataFuzzy class :)
Oh, it's more RAM efficient too.
_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>
Search the archives:
<http://support.realsoftware.com/listarchives/lists.html>