Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Paste handler optimizations #559

Merged
merged 2 commits into from
Jun 27, 2024
Merged

Paste handler optimizations #559

merged 2 commits into from
Jun 27, 2024

Conversation

sanchit3008
Copy link
Collaborator

Currently the paste operation was bottlenecked by the usage of setRowHeight after every loop iteration. This PR changes this process so that the rowHeightList is constructed as the loop is run, but the render is performed only post the loop is done - leading to total paste time of about 1 second as compared to 23 seconds for sheets containing prior data and 5000 rows being pasted.

call `setRowHeight` only once post the loop
@sanchit3008 sanchit3008 requested a review from zyc9012 June 26, 2024 11:15
@sanchit3008 sanchit3008 merged commit 90c76c7 into master Jun 27, 2024
2 checks passed
@sanchit3008 sanchit3008 deleted the paste-optimizations branch June 27, 2024 09:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant