• 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: ARC question
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: ARC question


  • Subject: Re: ARC question
  • From: Vincent Habchi <email@hidden>
  • Date: Mon, 29 Oct 2012 12:44:07 +0100

Le 29 oct. 2012 à 12:34, Mike Abdullah <email@hidden> a écrit :

> The code is a fairly inefficient to start with, but no, it's not going to leak.

Thanks. I am aware of this, but since this code is going to be part of a didactic article on writing a WMS client, I emphasize clarity over performance (this is a secondary aspect).

However, I am interested in knowing how you would write such a translator yourself to make it more efficient. I had initially the idea of copying every char until a ‘&’, in which case the following content would be analyzed and replaced if necessary, and so on until the end of the HTML string. That would mean one single pass instead of as many as the number of pairs in the dictionary.

Vincent


_______________________________________________

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


  • Follow-Ups:
    • Re: ARC question
      • From: Mike Abdullah <email@hidden>
    • Re: ARC question
      • From: Roland King <email@hidden>
References: 
 >ARC question (From: Vincent Habchi <email@hidden>)
 >Re: ARC question (From: Mike Abdullah <email@hidden>)

  • Prev by Date: Re: createDirectoryAtPath:withIntermediateDirectories:attributes:error: Returns NO when it exists
  • Next by Date: Re: ARC question
  • Previous by thread: Re: ARC question
  • Next by thread: Re: ARC question
  • Index(es):
    • Date
    • Thread