opossum-tool / OpossumUI

A light-weight app to audit and inventory large codebases for open source license compliance.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Cache colours in Resource Tree to speed up navigation

leslielazzarino opened this issue · comments

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.

@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.