Not sure where to post this question, I don't think the PHP general list is
the right place.

I have a large result set from a database. In effect, it is a large 2
dimensional array.
If I pass this to a method by value it gets copied into the local scope of
that method. The copy is a different physical copy. My question is how
efficient is this? I suspect that PHP would just call a malloc() and
memcpy(), so the overhead shouldn't be too huge. Or am I mistaken and a lot
of extra overhead is involved for the parser to manage the copy.

Thanks in advance

Neil Kimber

PHP Development Mailing List <>
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to