It seems like this is rather application specific and it's hard to give a
solution without knowing how many records you have, or the criteria you're
using to sort them.  What do you mean by pack and unpack?  Are you just
trying to eliminate the unnecessary bytes on the strings?

Try implementing your idea and test it on the device it will run on.  If
it's too slow, look for a better way.  If you have an absurd amount of
records, then look for a better way to store the data.

-- 
Tim Kostka
http://www.nuprograms.com


"E F" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED]
> I have a program that up until now, I did not store the data (records)
> packed.
>
> So my structures look like:
>
> UInt32 something
> Char    abc[200]
> Char    xyz[34]
>
> etc.
>
> I would like to upgrade the application and when it runs for the first
time,
> go through each record and pack them and store it.  Not sure the best way
to
> go, but it seems like it would be fairly easy to do.
>
> In the application I have to cycle through records and display the
> apporpriate one based on certain criteria.  I am assumng when cycling
> through them now, I would have to unpack it, read it and continue.  This
> seems like it would slow down the application pretty well.
>
> Am I missing something?  Or is there a better way to go?
>
> E.
>
> _________________________________________________________________
> Trouvez l'�me soeur sur MSN Rencontres http://g.msn.fr/FR1000/9551
>
>



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

Reply via email to