-
Sub-task
-
Resolution: Done
-
Medium
-
None
-
None
-
SIMPLY S15 July 20 - Aug 3, SIMPLY S16 August 3 - 17, SIMPLY S17 August 17 - 31, SIMPLY S18 Aug 31 - Sep 14
TAD here.
It currently takes 4+ loops to display the correct libraries when the user toggles to “Show all: on” and 7+ loops when the user toggles to “Show all: off.” We could store the all- and production-only lists so that they don’t need to be filtered multiple times every time the LibrariesPage component is rerendered.
The Stats component sorts all of the libraries into production, testing, and cancelled arrays on first load. We may be able to use these arrays when the user toggles, rather than looping each time. This may also allow us to reduce the number of rerenders of the LibrariesPage page component.
Implement appropriate changes to decrease these expensive operations.