=str Fix worst performance hotspot in graph builder

* Set.tail
Merge pull request #16244 from akka/wip-graph-builder-perf-impr-patriknw

=str Fix worst performance hotspot in graph builder