[ ] I added an entry to rstar/CHANGELOG.md if knowledge of this change could be valuable to users.
I was reading through the code and noticed that this was a double for loop, but children2 doesn't depend on child1 at all, so it doesn't need to be in the for loop. You do have to collect the items into a vector because you can't use the iterator more than once, but seems better than recomputing it every loop iteration?
[ ] I added an entry to
rstar/CHANGELOG.md
if knowledge of this change could be valuable to users.I was reading through the code and noticed that this was a double for loop, but
children2
doesn't depend onchild1
at all, so it doesn't need to be in the for loop. You do have to collect the items into a vector because you can't use the iterator more than once, but seems better than recomputing it every loop iteration?