Re: PHP Tips and Tricks Use References if you are passing large data structs around to save memory
There is a tradeoff here. Manipulating references is actually a bit slower than making copies of your
data, but with references you will be using less memory. So you need to determine if you are cpu or
memory bound to decide whether to go through and look for places to pass references to data instead
of copies.
__________________ Thanks & Regards
Sabari... |