Skip to content

[Enhancement] Big children size issue #218

@urlimited

Description

@urlimited

Please fix me if I am wrong, but I believe for the cases when we have really big children nodes in the $children array property, the code might be crashed to the memory limit when we take $this->getChildren() in visitors.

In fact, would be great to make each visitor (TraversalPreOrder, TraversalPostOrder) via generators.
There is a yield visitor, but in fact, it does not have anything in common with the generator

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions