Dear Palm Folks, I asked Danny Epstein a question regarding this, and he suggested I post this "so that David Fedor and others responsible for the glue library can take in under consideration."
I was wondering if we might be able to get a Glue function for DmFindSortPosition. The problem with DmFindSortPosition that prevents it from working correctly on large databases wasn't fixed until (I believe 4.0), so there are a LOT of handhelds out there, especially those running OS 3.5, that could really use this fix. While each developer could write his his own binary search routine, this would be bad because: 1. It is obviously a big waste of time to have thousands of developers write and debug the same piece of code. 2. The performance of a developer-written version would not be as good because, as Danny explained it to me, "your version will have to grab and release the Dm semaphore for each iteration in the binary search, whereas DmFindSortPosition can grab it once at the beginning." And of course, it is exactly in those cases where the database is large that the performance would actually matter. I know that a lot of Glue functions are being added for OS 5. Would it be possible to have one for DmFindSortPosition included? Thanks. Tom Ward -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
