• 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: Reading in dictionary from txt file: options for speed
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Reading in dictionary from txt file: options for speed


  • Subject: Re: Reading in dictionary from txt file: options for speed
  • From: Kyle Sluder <email@hidden>
  • Date: Tue, 14 Apr 2009 19:43:28 -0400

On Tue, Apr 14, 2009 at 7:23 PM, Miles <email@hidden> wrote:
> *1) *I've been trying Kyle's suggestion for a few hours and I can't get it
> working right. I broke it into this simple example, and it's not able to
> convert it to the 'word' struct.

At this point, better solutions that involve less hackery have been
proposed.  I'd suggest ignoring mine unless you really *really* need a
speed improvement over something like WT's plist solution.  You
probably won't, and the only way you'll know you do is with
Shark/Instruments profiling data.

Nonetheless:

> NSMutableData *data1;
> NSString *myString = @"\\x06hello\\x00";

Those \xNN were supposed to represent literal bytes.  :)  Typically,
when you see someone trying to put raw binary data in an email/blog
post, they will use the \xNN convention, because there's no other
convenient way to illustrate "this is an actual number 6, *not* the
ASCII character for 6".

--Kyle Sluder
_______________________________________________

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: Reading in dictionary from txt file: options for speed
      • From: Miles <email@hidden>
References: 
 >Reading in dictionary from txt file: options for speed (From: Miles <email@hidden>)
 >Re: Reading in dictionary from txt file: options for speed (From: Kyle Sluder <email@hidden>)
 >Re: Reading in dictionary from txt file: options for speed (From: Michael Ash <email@hidden>)
 >Re: Reading in dictionary from txt file: options for speed (From: Miles <email@hidden>)

  • Prev by Date: CIImage resize optimisation
  • Next by Date: QTMovieDidEndNotification
  • Previous by thread: Re: Reading in dictionary from txt file: options for speed
  • Next by thread: Re: Reading in dictionary from txt file: options for speed
  • Index(es):
    • Date
    • Thread