Closed
Description
SortedSet.InOrderTreeWalk
currently uses a stack on which the nodes to walk are pushed/popped: https://github.com/dotnet/corefx/blob/master/src/System.Collections/src/System/Collections/Generic/SortedSet.cs#L234
It looks like it would be possible to implement this recursively instead, i.e. InOrderTreeWalk(left); action(current); InOrderTreeWalk(right)
and eliminate the Stack allocation.