From 41c63269c813b4c9ab644b2456b04b405aab0a4b Mon Sep 17 00:00:00 2001 From: Luke De Feo Date: Tue, 29 Oct 2024 09:26:49 -0700 Subject: [PATCH] reduce tree overscan Summary: while testing with avatars i noticed some slowness, the tree seems to be taking a while in the profile so reducing the virtualisers overscan helps a little Reviewed By: antonk52 Differential Revision: D65134708 fbshipit-source-id: 1160a4a09a9bc51eef69a56609d565db3856f029 --- desktop/plugins/public/ui-debugger/components/tree/Tree.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/desktop/plugins/public/ui-debugger/components/tree/Tree.tsx b/desktop/plugins/public/ui-debugger/components/tree/Tree.tsx index c8be774172a..c7e8198606b 100644 --- a/desktop/plugins/public/ui-debugger/components/tree/Tree.tsx +++ b/desktop/plugins/public/ui-debugger/components/tree/Tree.tsx @@ -133,7 +133,7 @@ export function Tree2({ count: treeNodes.length, getScrollElement: () => parentRef.current, estimateSize: () => TreeItemHeightNumber, - overscan: 20, + overscan: 5, }); const prevSearchTerm = useRef(null);