alexcrichton opened PR #9604 from alexcrichton:cache-one-stack
to bytecodealliance:main
:
This commit stores a single fiber stack in
Store<T>
as a cache to be used throughout the lifetime of theStore
. This should help amortize the cost of allocating a stack for use in a store because the same stack can be used continuously throughout the lifetime of theStore<T>
. This notably reduces contention on the lock used to manage the pooling allocator when possible.<!--
Please make sure you include the following information:
If this work has been discussed elsewhere, please include a link to that
conversation. If it was discussed in an issue, just mention "issue #...".Explain why this change is needed. If the details are in an issue already,
this can be brief.Our development process is documented in the Wasmtime book:
https://docs.wasmtime.dev/contributing-development-process.htmlPlease ensure all communication follows the code of conduct:
https://github.com/bytecodealliance/wasmtime/blob/main/CODE_OF_CONDUCT.md
-->
alexcrichton requested pchickey for a review on PR #9604.
alexcrichton requested wasmtime-core-reviewers for a review on PR #9604.
alexcrichton updated PR #9604.
pchickey submitted PR review:
Love it!
alexcrichton merged PR #9604.
Last updated: Dec 23 2024 at 13:07 UTC