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

Add the ability to bail out of parsing if the number of columns exceeds a given limit #776

Merged
merged 2 commits into from
May 3, 2019

Conversation

papandreou
Copy link
Contributor

@papandreou papandreou commented Apr 3, 2019

Follow-up to #541

Today we ran into a weird excel spreadsheet with 10803 columns (due to some weird accidentally applied formatting), which caused our import processing code to run out of memory despite using a rowLimit 🙄

Implementing a column limit was pretty straightforward and analogous, so I went ahead and did that.

On the other hand, it would also be nice to implement some kind of overall "total cell limit" instead (or in addition), as it's the number of cells that determine the overall resource consumption. It seems like that would require passing around a shared object with counters. What do you think?

Copy link
Member

@Siemienik Siemienik left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

it's look fine for me
@papandreou thank`s

@guyonroche guyonroche merged commit 1bee6a8 into exceljs:master May 3, 2019
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.

3 participants