Subject: Re: Big issues with the T5
From: Ben Combee <[EMAIL PROTECTED]>
Date: Sun, 14 Nov 2004 10:11:03 -0600
X-Message-Number: 6

At 08:17 AM 11/14/2004, you wrote:
>Is there anyway to flush to the cache except by closing the file ?

Yes.  There's a new call, DmSyncDatabase, implemented on the device.  This
is part of future Palm OS 68K SDK releases, and is also documented in
PalmOne's SDK.

Without access to a T5 or a Treo 650 to test with...

How fast is DmSyncDatabase() ?

To avoid unknown sets of data missing from a file that survives a reset, it appears that one should call DmSyncDatabase() after each time one adds or updates a record, or modifies the Application or Sort information blocks, though if you are doing a mass change or append, you can hold off calling DmSyncDatabase() until that process has completed.

On a file with (say) 50 records and a single changed record with average size of (say) 150 bytes, how long would DmSyncDatabase() take?
What about on a similar file with 500 records and one changed record?
What about on a packed index file with 300 records of 10K each and one changed record?


Since the NAND memory is sequentially accessed, I presume the write time is a function of (a) size of file and (b) number of records.

The good news on DmSyncDatabase() is that it is a single 68K function call to optimized ARM code.

But is there optimization built in to only write the parts of the file that have changed?

Roger Stringer
Marietta Systems, Inc. (www.rf-tp.com)



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

Reply via email to