Perf attribute routing link generation

Uses the same infrastructure as action selection
Looking at the code more carefully, this needs some thought and profiling, but I suspect the possible gain is pretty low. This change would churn a bunch of tests and the action selection part. I'll look at it in a follow up.