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:
t8y2 committed 2026-05-11 13:08:57 +08:00
1 parent 7c38af6cbb
commit 7197f83eda
3 files changed
+7 -5

No files matched your search

+1 -1
View File
@@ -23,5 +23,5 @@ export function flattenTree(nodes: TreeNode[]): FlatTreeNode[] {
}
export function shouldVirtualizeFlatTree(count: number): boolean {
return count >= 400;
return count >= 100;
}