note 119115 deleted from class.recursiveiteratoriterator by salathe
| From: | salathe@php.net | Date: | Mon, 24 Aug 2020 12:58:51 +0000 |
| Subject: | note 119115 deleted from class.recursiveiteratoriterator by salathe | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-215020@lists.php.net to get a copy of this message | ||
Note Submitter: jhonatan dot teixeira at gmail dot com
----
Note that this class will first iterate your entire tree and build the graph before going into your
foreach. That's propably how it can iterate your leaves first or only your leaves. and
that's must be the reason its slower than commom recursive functions.
Beware of that wen you have a tree that can go into a infinite loop, in some cases you know your
tree has a infinite loop, but you are looking for something inside it and are breaking the loop wne
found, this class wen used on these cases will get stuck into an internal infinite loop.