Need for Speed (postscript)

Ken Ray kray at
Sun Jul 15 18:26:53 EDT 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.

Ken Ray
Sons of Thunder Software, Inc.
Email: kray at
Web Site:

More information about the Use-livecode mailing list