Skip to content
This repository has been archived by the owner on Nov 22, 2024. It is now read-only.

Commit

Permalink
reduce tree overscan
Browse files Browse the repository at this point in the history
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
  • Loading branch information
Luke De Feo authored and facebook-github-bot committed Oct 29, 2024
1 parent 533f088 commit 41c6326
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@ export function Tree2({
count: treeNodes.length,
getScrollElement: () => parentRef.current,
estimateSize: () => TreeItemHeightNumber,
overscan: 20,
overscan: 5,
});

const prevSearchTerm = useRef<string | null>(null);
Expand Down

0 comments on commit 41c6326

Please sign in to comment.