ActorPath: possible toString improvement
If GC pressure of toString is more relevant than size of the ActorPath objects, a possible improvement would be to add a field to each ChildActorPath which holds the total length of the string up to this point. Then toString would allocate a StringBuilder of the right size and fill it using .replace() from the end, no copying needed.
Leave a comment
That will be highly application specific since it involves the name of each actor in the hierarchy....