Cache colours in Resource Tree to speed up navigation
leslielazzarino opened this issue · comments
Leslie Lazzarino commented
Is your feature request related to a problem? Please describe.
The calculation of the color of the icons in the ResourceBrowser is time-consuming (it takes almost 0.3s in a 500k resources app).
Describe the solution you'd like
The colours should be cached, after being calculated once. The cache should be invalidated when manualData.attributionsToResources changes.
Maxim Stykow commented
@leslielazzarino how did you calculate this? the color of each item is determined as part of each item and since we're virtualizing the tree we're never calculating colors for all 500k items upfront.