Replies: 1 comment 1 reply
-
I found similar issue, after running Chrome performance style={{
transform: `translateX(${column.getStart()}px) translateY(${virtualRow.start}px)`,
}} What @gewesp says about using a hash map instead of running
|
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
table/packages/table-core/src/features/ColumnSizing.ts
Line 133 in 9ef186f
If I read that code correctly, it scans all columns linearly for a given ID.
We use tanstack with tables of potentially 100s of columns.
In our profiles, the getStart() function shows up taking significant amount of CPU. Notice that it is even recursive.
Looking up the ID in a map may be potentially much faster, provided that the code can be refactored so that the map doesn't need to be recreated each time (I think this is possible).
Questions:
Beta Was this translation helpful? Give feedback.
All reactions