vrana Mon Oct 31 10:04:13 2005 EDT
Modified files: /phpdoc/en/language variables.xml Log: Assigning references are not faster than lazy copy http://cvs.php.net/diff.php/phpdoc/en/language/variables.xml?r1=1.87&r2=1.88&ty=u Index: phpdoc/en/language/variables.xml diff -u phpdoc/en/language/variables.xml:1.87 phpdoc/en/language/variables.xml:1.88 --- phpdoc/en/language/variables.xml:1.87 Sun Feb 13 17:05:29 2005 +++ phpdoc/en/language/variables.xml Mon Oct 31 10:04:12 2005 @@ -1,5 +1,5 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.87 $ --> +<!-- $Revision: 1.88 $ --> <chapter id="language.variables"> <title>Variables</title> @@ -65,11 +65,6 @@ This means that the new variable simply references (in other words, "becomes an alias for" or "points to") the original variable. Changes to the new variable affect the original, and vice versa. - This also means that no copying is performed; thus, the assignment - happens more quickly. However, any speedup will likely be noticed - only in tight loops or when assigning large - <link linkend="language.types.array">arrays</link> or - <link linkend="language.types.object">objects</link>. </para> <para> To assign by reference, simply prepend an ampersand (&) to the