note 102385 added to language.operators.assignment
[email protected] Fri, 11 Feb 2011 01:44:54 -0800
| Newsgroups | php.notes |
|---|---|
| Message-ID | <[email protected]> |
Using $text .= "additional text"; instead of $text = $text ."additional text"; can seriously enhance performance due to memory allocation efficiency. I reduced execution time from 5 sec to .5 sec (10 times) by simply switching to the first pattern for a loop with 900 iterations over a string $text that reaches 800K by the end. ---- Server IP: 69.147.83.197 Probable Submitter: 89.179.242.131 ---- Manual Page -- http://www.php.net/manual/en/language.operators.assignment.php Edit -- https://master.php.net/note/edit/102385 Del: integrated -- https://master.php.net/note/delete/102385/integrated Del: useless -- https://master.php.net/note/delete/102385/useless Del: bad code -- https://master.php.net/note/delete/102385/bad+code Del: spam -- https://master.php.net/note/delete/102385/spam Del: non-english -- https://master.php.net/note/delete/102385/non-english Del: in docs -- https://master.php.net/note/delete/102385/in+docs Del: other reasons-- https://master.php.net/note/delete/102385 Reject -- https://master.php.net/note/reject/102385 Search -- https://master.php.net/manage/user-notes.php