perf(sidebar): fix UI lag with 100+ databases (closes #201)
- Lower virtual scrolling threshold from 400 to 100 nodes so RecycleScroller activates earlier with many databases - Memoize getConfig() with a computed Map to avoid O(n) linear search on every TreeItem computed property evaluation
This commit is contained in:
1 parent
7c38af6cbb
commit
7197f83eda
3 files changed
+7
-5
No files matched your search
@@ -23,5 +23,5 @@ export function flattenTree(nodes: TreeNode[]): FlatTreeNode[] {
|
||||
}
|
||||
|
||||
export function shouldVirtualizeFlatTree(count: number): boolean {
|
||||
return count >= 400;
|
||||
return count >= 100;
|
||||
}
|
||||
Reference in new issue
Block a user