Need for Speed (postscript)
kray at sonsothunder.com
Sun Jul 15 17:26:53 CDT 2007
On Sun, 15 Jul 2007 14:27:23 -0700, Stephen Barncard wrote:
> what about "pass by reference" being faster?
My understanding is that what you get with PBR is not necessarily an
increase in speed, but a reduction in the amount of memory space needed
to manipulate the data. If you use regular parameters, there is at any
given time *two* copies of passed variables in memory - the one in the
calling handler, and a new copy that's being examined/manipulated in
the called handler. in PBR, the same variable is being manipulated so
there's no copy being made.
Sons of Thunder Software, Inc.
Email: kray at sonsothunder.com
Web Site: http://www.sonsothunder.com/
More information about the use-livecode