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

improved large data paste performance #1705

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

ykawakamy
Copy link

When pasting large data, call updateTableReference/updateSelectionFromCoords for each additional row or column.
updateTableReference/updateSelectionFromCoords updates the DOM and recalculate the layout, which will result in a performance loss.

PR can reduce the number of calls to updateTableReference/updateSelectionFromCoords by extending the paste area in advance.

Tests are added at commit 20d61c9.
Compare with commit ff63058.

NOTE: can be done in previous versions by using parseCSV and insertRow/Column in onbeforepaste.

--
Sry, i'm not good at english.

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