Skip to content

perf(cursor): clear the stack every time if using populate with batchSize to avoid stack overflows with large docs#15136

Merged
vkarpov15 merged 1 commit intomasterfrom
vkarpov15/gh-10449-2
Dec 30, 2024
Merged

perf(cursor): clear the stack every time if using populate with batchSize to avoid stack overflows with large docs#15136
vkarpov15 merged 1 commit intomasterfrom
vkarpov15/gh-10449-2

Conversation

@vkarpov15
Copy link
Collaborator

Fix #10449

Summary

I wasn't able to repro #10449 locally, but there shouldn't be any issues with clearing the stack on every call. Minor performance impact, but better parallelization and less risk of stack overflows.

Examples

…Size to avoid stack overflows with large docs
Copy link
Collaborator

@AbdelrahmanHafez AbdelrahmanHafez left a comment

Choose a reason for hiding this comment

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

LGTM

Copy link
Collaborator

@hasezoey hasezoey left a comment

Choose a reason for hiding this comment

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

LGTM

@vkarpov15 vkarpov15 added this to the 8.9.3 milestone Dec 30, 2024
@vkarpov15 vkarpov15 merged commit ddd95b8 into master Dec 30, 2024
74 checks passed
@vkarpov15 vkarpov15 deleted the vkarpov15/gh-10449-2 branch December 30, 2024 20:07
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.

Maximum call stack size exceeded

3 participants