• 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: Performance problem with GC enabled
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Performance problem with GC enabled


  • Subject: Re: Performance problem with GC enabled
  • From: "Paul Sanders" <email@hidden>
  • Date: Sat, 14 Mar 2009 10:29:34 -0000

> How about perl instead? (I don't think egrep is a fair test, it
> doesn't have to 'do anything' with the results, like create a new
> string from them). This is a rough perl equivalent of my original
> problem:

I guess that's the point I was trying to get across - the overhead of
creating all those strings (and whatever other temporary objects have to be
created behind the scenes) might be significant.  Ditto in perl, perhaps, I
really wouldn't know.  There's of no reason why the underlying RegEx
implementation needs to be inefficient if it's well written.

As Michael Ash has been kind enough to document, object instantiation is
quite expensive :

http://www.mikeash.com/?page=pyblog/performance-comparisons-of-common-operations.html

But of course, if you need to break your original text up into NSString's,
there's not much you can do about it.

I'm sorry Bill, but the more I hear about GC and in particular the
difficulties of using it with malloc'd memory the gladder I am not to be
using it.  I guess that one should not be surprised that it is difficult to
retro-fit it in the way that you are forced to.  Caveat emptor!

Rgds - Paul Sanders

_______________________________________________

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: Performance problem with GC enabled
      • From: Marcel Weiher <email@hidden>
    • Re: Performance problem with GC enabled
      • From: "Sean McBride" <email@hidden>
    • Re: Performance problem with GC enabled
      • From: Bill Bumgarner <email@hidden>
References: 
 >Performance problem with GC enabled (From: John Engelhart <email@hidden>)
 >Re: Performance problem with GC enabled (From: Bill Bumgarner <email@hidden>)
 >Re: Performance problem with GC enabled (From: Marcel Weiher <email@hidden>)
 >Re: Performance problem with GC enabled (From: "Paul Sanders" <email@hidden>)
 >Re: Performance problem with GC enabled (From: John Engelhart <email@hidden>)

  • Prev by Date: Re: Performance problem with GC enabled
  • Next by Date: Re: Calling Script Objects in Applescript
  • Previous by thread: Re: Performance problem with GC enabled
  • Next by thread: Re: Performance problem with GC enabled
  • Index(es):
    • Date
    • Thread