Skip to content

Remove unnessasary recursion. - #1356

Closed
kalaspuffar wants to merge 2 commits into
w3c:mainfrom
kalaspuffar:remove_recursion
Closed

kalaspuffar wants to merge 2 commits into
w3c:mainfrom
kalaspuffar:remove_recursion

Conversation

@kalaspuffar

Copy link
Copy Markdown
Contributor

Hi Team.

I was trying to validate a law collection book with a nav document with 33k lines at a 2Mb in size.

Sadly recursively running the structure was not a viable option. I think I changed it, so it should have a similar function but not be recursive.

Best regards
Daniel

@rdeltour

Copy link
Copy Markdown
Member

Thanks for the PR @kalaspuffar.
I'm waiting a bit before merging this, as the whole class have been refactored in the ongoing branch for v5.0.0.
I will apply/rebase this PR against the branch when it is pushed to main.

rdeltour added a commit that referenced this pull request Nov 28, 2022
Unnecessary recursion was causing StackOverflowError with large package documents.

Fix #1358, Close #1356.

Co-Authored-By: Daniel Persson <kalaspuffar@users.noreply.github.com>
@rdeltour rdeltour self-assigned this Dec 1, 2022
@rdeltour

rdeltour commented Dec 5, 2022

Copy link
Copy Markdown
Member

Closing this PR, which is now replaced by #1434.

@rdeltour rdeltour closed this Dec 5, 2022
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

⌂ 换网址