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

smscalls: allow large XML files as input #411

Merged
merged 1 commit into from
Dec 28, 2024
Merged

Conversation

purarue
Copy link
Contributor

@purarue purarue commented Dec 23, 2024

once XML files increase past a certain size
(was about 220MB for me), the parser just throws
an error because the tree is too large (iirc for
security reasons)

could maybe look at using iterparse in the future
to parse it without loading the whole file, but this
seems to fix it fine for me

once XML files increase past a certain size
(was about 220MB for me), the parser just throws
an error because the tree is too large (iirc for
security reasons)

could maybe look at using iterparse in the future
to parse it without loading the whole file, but this
seems to fix it fine for me
@karlicoss
Copy link
Owner

220MB xml is impressive 💀 thanks!

@karlicoss karlicoss merged commit f1d23c5 into karlicoss:master Dec 28, 2024
10 checks passed
@purarue
Copy link
Contributor Author

purarue commented Dec 28, 2024

yeah, images really increase the size of the export 😅

I think at some point I will do a rewrite to use iterative code rather than parsing the whole thing in memory and write a regression test against the current parsing mechanism

I can no longer parse it on my phone, I get a lxml memory overflow error

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.

2 participants