Sorry for lack of knowledge.
But how does binary search work?
I suppose I should use DmFindSortPosition. (?)
Richard Burmeister wrote:
> > From: Wojtek
> >
> > My database is going to have over 1500 records.
> > Is there a way I can speed up searching for a specified string in these
> > records.
> > DB is sorted.
> > All I'm doing is qyerying next record looking if it contains specified
> > string , then next ,next...
> >
>
> If your DB is sorted, why not do a binary search? That will be much, much
> faster (O log N vs. O N, I think).
>
> --
> For information on using the Palm Developer Forums, or to unsubscribe, please see
>http://www.palmos.com/dev/tech/support/forums/
--
For information on using the Palm Developer Forums, or to unsubscribe, please see
http://www.palmos.com/dev/tech/support/forums/