Your first approach sounds better, unless you're going to get a MASSIVE
speed advantage, it's always best not to demand the use of too much
memory, just in case. 

-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of druid
Sent: 19 August 2005 18:22
To: Palm Developer Forum
Subject: RE: Run function 19 times then it crash's I know what but not
why

Oh I see, your saying do the clean up before
the function does it's work, not after. I was trying to do the clean
up after, and was getting the faults.
The reason this is called so many times is the database is parsed
and records matching the first letter of what we set are filtered
into the list. Each time a new letter is clicked the entire
process is done over. I have thought of parsing the db into an array
and sorting the array, however Im not sure that would be any faster
because the DB is actualy in memory anyway, This would keep me from
having to open and close the db each time this function is called.
I could call it once then just work off the static array. But
time wise im not sure i would gain much.

-- 
For information on using the PalmSource Developer Forums, or to
unsubscribe, please see http://www.palmos.com/dev/support/forums/

-- 
For information on using the PalmSource Developer Forums, or to unsubscribe, 
please see http://www.palmos.com/dev/support/forums/

Reply via email to