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

Optimize range performance by limiting it based on available data #127

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

laucheukhim
Copy link
Contributor

When a range selection exceeds the available data, a lot of empty cells are selected, resulting in poor performance.

For example, in a spreadsheet with 68 rows of data, with the following formula:

=IFERROR(VLOOKUP(C38,D$2:F$1048576,3,0),0)

Instead of selecting up to the 68th row, it attempts to select all 1048576 rows, with most of them being empty.

We can make use of the size of the spreadsheet from SheetJS to limit the selection to improve performance.

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