note 54990 deleted from control-structures.for by danbrown
| From: | danbrown@php.net | Date: | Mon, 07 Dec 2009 16:06:11 +0000 |
| Subject: | note 54990 deleted from control-structures.for by danbrown | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-163654@lists.php.net to get a copy of this message | ||
Note Submitter: dre
----
In reply to M. Berndt's code sample: recursion is not "always" faster, especially not
when you consider how big the stack's getting.
With FAKTOR = 50:
for(): 0.0222418308258
recursion: 0.175624132156
With FAKTOR = 1000:
for(): 0.228713035583
recursion: 0.459243059158