• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag
 

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: huge .strings files
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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
  • Follow-Ups:
    • Re: huge .strings files
      • From: Jean-Daniel Dupas <email@hidden>
References: 
 >huge .strings files (From: Eric Gorr <email@hidden>)

  • Prev by Date: Query on CrashReporter and atos
  • Next by Date: Re: xcode crash with strange newline characters
  • Previous by thread: huge .strings files
  • Next by thread: Re: huge .strings files
  • Index(es):
    • Date
    • Thread