n^2 behavior observed on VisibilityBadge representationAddedToActiveView/representationRemovedFromActiveView
We observed when loading resources and unloading resources the GUI would become unresponsive but would eventually become responsive again. It would progressively become unresponsive for longer with repeated adding and removing resources. After doing some debugging started noticing a n^2 behavior occuring. First resource we'd load / unload we'd get 1 connect and disconnect. Second time we'd get 2. Third time 4. Fourth time 8 and so on. We did this with a vanilla modelbuilder and loading OpenFOAM simulation-workflow.
The slow down is coming from / being felt at VisibilityBadge::representationAddedToActiveView and VisibilityBadge::representationRemovedFromActiveView
FYI: @bob.obara @dcthomp
Edited by David Thompson