• 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: NSString accessing characters
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: NSString accessing characters


  • Subject: Re: NSString accessing characters
  • From: Quincey Morris <email@hidden>
  • Date: Fri, 17 Jun 2011 09:14:30 -0700

On Jun 17, 2011, at 04:19, Andreas Grosam wrote:

> It does not convert at all. It can understand any Unicode encoding form, though.

Ah, OK, I misunderstood you to mean "parsing" in relation to the Unicode representation itself. That's not as silly as it sounds, because it's not entirely trivial to decode UTF-8 or UTF-16 with robust error detection and recovery.

> However, if I have to deal with "very large input", I guess NSString is no option anyway, not only for performance reasons, but also from a memory foot-print perspective( IFF my current understanding of NSString is correct, namely that its content is stored in memory).

I think you just answered your own (original) question: you shouldn't be considering NSString input at all. Instead, you should be retrieving data from all significantly-sized input sources in raw form.

That doesn't mean you shouldn't *accept* NSString input, just that you shouldn't waste time on performance optimizations of NSString input. :)


_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

References: 
 >NSString accessing characters (From: Andreas Grosam <email@hidden>)
 >Re: NSString accessing characters (From: Quincey Morris <email@hidden>)
 >Re: NSString accessing characters (From: Andreas Grosam <email@hidden>)

  • Prev by Date: Re: NSString accessing characters
  • Next by Date: Re: So... we can't use UIWebView (with a delegate) on a page that's pushed onto a UINavigationController stack?
  • Previous by thread: Re: NSString accessing characters
  • Next by thread: NSTextFieldDelegate issues
  • Index(es):
    • Date
    • Thread