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

Re: Manipulating text


  • Subject: Re: Manipulating text
  • From: Christopher Nebel <email@hidden>
  • Date: Mon, 28 Sep 2009 09:45:56 -0700

On Sep 28, 2009, at 9:43 AM, Stockly, Ed wrote:

(Im)mutability is really the relevant thing -- strings follow the same
copy/share behavior as lists, but it's hard to tell the difference because
they're immutable. You would see a performance difference, though.



Which performs better? I would assume it's 'set', because it moves less data from memory location to memory location. And would 'set' use less memory as well.

"set", obviously, since it only copies references, not the whole object.

With faster processors would the performance difference even be noticeable?

That would depend on how much data you were copying. =)


--Chris Nebel AppleScript Engineering

_______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/archives/applescript-users

This email sent to email@hidden
References: 
 >Re: Manipulating text (From: "Stockly, Ed" <email@hidden>)

  • Prev by Date: Re: Manipulating text
  • Next by Date: Re: AS Application
  • Previous by thread: Re: Manipulating text
  • Next by thread: Re: Manipulating text
  • Index(es):
    • Date
    • Thread