Fix performance issue in project list (#1663)
The onProjectAdded method of ProjectList will sort and refresh the table, which is an `O(n log n)` operation. However, when we load the list of projects initially, this will get called `O(n)` times, resulting in `O(n^2 log n)` performance. For many users, the number of projects might be small and this load time may appear negligible. However, for more prolific users with hunders of projects, this may result in multiple seconds wait time while the list is first loaded. This fix defers sorting the list until all projects have been added. Change-Id: I50332dd8f2993883428c79e8dafbebbe32e2c1fa
Showing
Please register or sign in to comment