Is it just me, or is working with references slow?

I have functions that loop through about 10000 lines of text, generating
stats on the content.

When I pass the lines to the function normally, this takes 0.8 seconds.
Passing by reference, or as a reference, both increase the time to 6

Meaning that working with references takes 750% the time.

In my head, making a copy should be slowest, but apparently referencing is
far slower...
Am I missing a point anywhere?

Tino Didriksen

PHP General 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