That's what I thought, you had me questioning my understanding of Palm OS memory management. It turned out to be a good thing though because I quick reread the Palm OS Memory Architecture white paper (http://oasis.palm.com/dev/kb/papers/1145.cfm) and that answered some questions I had about efficient memory usage. Thanks for the reply, Mike
> -----Original Message----- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED]]On Behalf Of Danny > Epstein > Sent: Tuesday, June 04, 2002 12:57 PM > To: Palm Developer Forum > Subject: RE: Glue function for DmFindSortPosition > > > > For those of us that have seen very little of the Palm OS > internals, what > > exactly does "Dm semaphore" refer to? > > The storage heap is protected from accidental modification. > When you call a > Data Manager API that modifies the storage heap, it > temporarily allows write > access to the storage heap. That's what I was referring to. However, > DmFindSortPosition doesn't modify the storage heap, or at least it > shouldn't. (It's generally safe to assume that the comparison > callback is > non-destructive.) So I was wrong - there is no significant performance > penalty for rolling your own binary search routine. > -- > Danny @ PalmSource > > -- > For information on using the Palm Developer Forums, or to > unsubscribe, please see http://www.palmos.com/dev/support/forums/ > -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
