Michael wrote:
> On a T3; my third party program closes in about 1 second.  
> On my new T5 the program takes about 35 seconds to close.  
> Yet the T5 has a faster processor!  What's up with that?  
> The T5 memory is free as there's not yet many programs on it, besides the 
> ones that came with it I've only added 4 small ones 
> and they are all on the 512mb sd card I put in it.  The SD card 
> has 330mb free and the internal memory has 157mb free.
> The program in question is not small it is 149,000 kb, is that 
> too big?  Why can the T3 handle it so well?

The program *itself* is 149 megabytes?  Or the program plus its
databases?

My guess is this problem has to do with the DBCache on the T5.
All previous Palm models store everything in battery backed
RAM, but the T5 stores it all in flash and temporarily copies
it to RAM (the DBCache) to speed up performance.  The thing
is, in order for the data to be really saved, it needs to be
copied out of the DBCache back to flash.

If the program is modifying lots of records in a database, it
could take lots of time to write those back from DBCache to
flash when you close the database(s) (i.e. when the program
exits).  You might try putting a DmSyncDatabase() call in at
any point after you've just finished changing lots of data.
This should flush right at that point, so that lots and lots
of changes don't build up and take forever to sync when sync
finally happens at app exit.

If the program itself is actually 149 MB, then I suppose it may
have to do with how the T5 supposedly reads in an entire
resource database when it's opened (and presumably has to
rewrite it to flash when it closes), but on the other hand,
I doubt that's it since according to how I read it, it would
be impossible to open a 149 MB PRC on the T5.

  - Logan

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

Reply via email to