perf(view factory): 14% Precompute linking information for nodes

The Default TreeComponent benchmark dropped from 572ms to 501ms

Closes #1194
Would caching the list be more efficient ? It could prevent calling querySelectorAll twice