Another trick would be to get the pdb loaded once, and then from then
on, instead of deleting records and then creating a zillion new ones,
just cycle through the records that already exist and replace their values
with the new data, thus you don't have a zillion calls to DmNewRecord()
----- Original Message -----
From: Tom Zerucha <[EMAIL PROTECTED]>
To: Palm Developer Forum <[EMAIL PROTECTED]>
Sent: Wednesday, April 19, 2000 5:18 PM
Subject: Re: Installing a PDB file takes a lot of time
> On Wed, Apr 19, 2000 at 01:48:52PM -0700, Sudipta Ghose wrote:
> > You are right Tom. I have tried packing several records in one record.
The
> > HotSync time reduced dramatically. We could transfer about 2 MB of data
in 3
> > min.s. as opposed 40 mins. However unpacking in Palm took around 36
mins.
> > Thus nullifying all the advantage. As you said it's the process of
creating
> > new records that is taking all the time. Only way to improve this is to
> > bypass the OS calls with our own, or optimize the OS calls.
> > If we don't need to unpack the records in Palm, we use the packing
> > technique. It only requires some pointer arithmatic. However if we need
to
> > keep the records separate, we send them as separate records.
>
> You might be able to do some tricks on the unpack side. It might be
> more efficient to do a lot of DmNewHandle, then DmAttachRecord calls
> instead of simply creating the records. Or always attaching it at
> NumRecords.
>
> (I was thinking of finding the slowest parts of PalmOS and writing a
> general TurboHack to replace those with optimized assembly... In my
> free time...:).
>
> --
> For information on using the Palm Developer Forums, or to unsubscribe,
please see http://www.palm.com/devzone/mailinglists.html
>
>
--
For information on using the Palm Developer Forums, or to unsubscribe, please see
http://www.palm.com/devzone/mailinglists.html