In the content graph we have some methods returning NodeAggregates and others iterable<NodeAggregate> while it seems like it, the iterable is also not lazy and yielded but fetches all nodes eagerly so there is no performance / memory gain.
This change is not really breaking, as NodeAggregates implement \IteratorAggregate and thus foreaching or calling iterator_to_array on the results will not make a difference.
Though this change should happen before a final release :D
Upgrade instructions
Review instructions
Checklist
[ ] Code follows the PSR-2 coding style
[ ] Tests have been created, run and adjusted as needed
Solves partially: https://github.com/neos/neos-development-collection/issues/5102
In the content graph we have some methods returning
NodeAggregates
and othersiterable<NodeAggregate>
while it seems like it, theiterable
is also not lazy and yielded but fetches all nodes eagerly so there is no performance / memory gain.This change is not really breaking, as
NodeAggregates
implement\IteratorAggregate
and thusforeach
ing or callingiterator_to_array
on the results will not make a difference.Though this change should happen before a final release :D
Upgrade instructions
Review instructions
Checklist
FEATURE|TASK|BUGFIX
!!!
and have upgrade-instructions