Skip to content

MongoQuerySerializer: better maxDepth#195

Open
mhvis wants to merge 1 commit intofacile-it:masterfrom
CleverMobi:master
Open

MongoQuerySerializer: better maxDepth#195
mhvis wants to merge 1 commit intofacile-it:masterfrom
CleverMobi:master

Conversation

@mhvis
Copy link
Contributor

@mhvis mhvis commented Jan 6, 2025

The maxDepth of 256 still triggered a stack overflow because our maximum stack size was 512 and the stack grows by 2 during each recursion.

The 50 chosen here is arbitrary.

The maxDepth of 256 still triggered a stack overflow because our maximum
stack size was 512 and the stack grows by 2 during each recursion.

The 50 chosen here is arbitrary.
@ilario-pierbattista
Copy link
Member

Hi @mhvis

The maxDepth of 256 still triggered a stack overflow because our maximum stack size was 512 and the stack grows by 2 during each recursion.

would you try to propose a fix for the growth by 2x?

Also, would you try the make the parameter $maxDepth configurable?

I'm sorry, but I won't accept a PR to simply change that value.

@mhvis
Copy link
Contributor Author

mhvis commented Feb 20, 2025

Yes sure no problem!

Cannot guarantee when I'll get to it though

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