Re: huge .strings files
Re: huge .strings files
- Subject: Re: huge .strings files
- From: Eric Gorr <email@hidden>
- Date: Wed, 18 Feb 2009 11:37:14 -0500
On Feb 12, 2009, at 8:47 AM, Eric Gorr wrote:
Something else I've been wondering about, but haven't had time to
test yet...but, thought someone here would just know the answer.
Is there any special under-the-hood handling of .strings files to
make extracting a string from them efficient at runtime?
I can imagine that storing just a few hundred strings in a .strings
file would allow for efficient access at runtime.
I haven't tried storing more then just a handful of strings in
a .strings file yet, but may have a need soon to store tens of
thousands of strings in one and am wondering what performance issues
I might run into and whether it is a better idea to split them into
many (, many, many) files.
Well, if anyone is interested, I ran some tests and whatever might be
going on, it took less then 1 second for NSLocalizedStringFromTable to
read 90,000 strings from a single .strings file (one call to
NSLocalizedStringFromTable per string). Rather good performance I
think. I keep forgetting that computers are fast these days and there
has been a lot of time to develop and implement efficient algorithms
for such operations.
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden