Well about 80% of them are shorter than 5 chars. Also using UTF8 encoding.

On 19 August 2010 18:48, greg <[email protected]> wrote:

> If all the strings are less than 5 chars, have you considered packing
> them into 4-byte integers?
>
> On Aug 19, 11:01 am, Mark Carter <[email protected]> wrote:
> > I've got a map of about 500 entries. Strings are all very short (less
> > than 5 chars).
> >
> > Its read-only data I want to read once at app-startup.
> >
> > What's the best way to store this so that loading this data is fast?
> >
> > I've tried storing the data in a CSV in res/raw but this takes about
> > 700ms to parse on my N1, so I'm hoping there's a faster way...
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to [email protected]
> To unsubscribe from this group, send email to
> [email protected]<android-developers%[email protected]>
> For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en
>

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to