Skip to content

[PoC] Manual tail-call optimization for AsyncCallbackLoop#1889

Draft
stIncMale wants to merge 15 commits intomongodb:mainfrom
stIncMale:manualTailCallOptimizationForAsyncCallbackLoop
Draft

[PoC] Manual tail-call optimization for AsyncCallbackLoop#1889
stIncMale wants to merge 15 commits intomongodb:mainfrom
stIncMale:manualTailCallOptimizationForAsyncCallbackLoop

Conversation

@stIncMale
Copy link
Member

@stIncMale stIncMale commented Feb 14, 2026

The technique is similar to trampoline function, though not quite the same. Probably because the use case is also not exactly the same: different iterations of the previously-recursive asynchronous calls may be executed by different threads.

This is a PoC for #1885.

@stIncMale stIncMale self-assigned this Feb 14, 2026
@stIncMale stIncMale mentioned this pull request Feb 14, 2026
@stIncMale stIncMale force-pushed the manualTailCallOptimizationForAsyncCallbackLoop branch from b71501e to 271c0bb Compare February 14, 2026 20:37
@stIncMale stIncMale force-pushed the manualTailCallOptimizationForAsyncCallbackLoop branch from cbf4f00 to 454b831 Compare February 16, 2026 12:30
@stIncMale stIncMale force-pushed the manualTailCallOptimizationForAsyncCallbackLoop branch from 454b831 to d418612 Compare February 16, 2026 12:47
@stIncMale stIncMale force-pushed the manualTailCallOptimizationForAsyncCallbackLoop branch from e477b46 to 1f5da7f Compare February 18, 2026 12:59
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.

1 participant

Comments