Re: Manipulating text
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