contao/test — Issue #2037: contao and references - performance
Author: Toflar
Created: 2011-11-29 09:00:54+00:00
State: open
Labels: Feature, framework

Hi Leo

I read an interesting article about references in php a few weeks ago while using references in Java.
Actually wanted to discuss this one earlier but forgot about it :)

You can find the article, written by Johannes Schlüter (the release manager of PHP 5.3 - just in case you didn't know - I didn't :) ), here: http://schlueters.de/blog/archives/125-Do-not-use-PHP-references.html

Right now we have all the language arrays passed by reference and I was asking myself whether Contao would be even faster if we got rid of all the references in the system.

Personally, I can't test and compare the performance because of a lack of the right environment.
Maybe somebody else could do some representative performance tests if you can't check this either.

To start off we could replace "&$GLOBALS" with "$GLOBALS" and check that one. I guess this must be the majority of all references used within TL/Contao.

Hmmm...I'm really curious about the result :)

Ah, and if you know about the whole reference problem already and have compared the performance with or without reference way back in time - even better! :D

--- _Originally created on May 26th, 2010, at 10:29am (ID 2037)_