Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(kernel): improve performance after large allocations, add extism_plugin_reset to give users more control when dealing with large allocations #627

Merged
merged 8 commits into from
Dec 12, 2023

Conversation

zshipko
Copy link
Contributor

@zshipko zshipko commented Dec 12, 2023

See extism/cpp-sdk#15

  • Limits a call to memset in the kernel to the size of the current memory offset instead of the total size of memory.
  • Adds extism_plugin_reset to the C API and extism::Plugin::reset to Rust

…e-allocations (#628)

Automated PR to update `runtime/src/extism-runtime.wasm` in PR #627

Co-authored-by: zshipko <zshipko@users.noreply.github.com>
…e-allocations (#629)

Automated PR to update `runtime/src/extism-runtime.wasm` in PR #627

Co-authored-by: zshipko <zshipko@users.noreply.github.com>
@zshipko zshipko changed the title fix(kernel): improve performance after large allocations fix(kernel): improve performance after large allocations, add extism_plugin_reset to give users more control when dealing with large allocations Dec 12, 2023
…e-allocations (#630)

Automated PR to update `runtime/src/extism-runtime.wasm` in PR #627

Co-authored-by: zshipko <zshipko@users.noreply.github.com>
Copy link
Contributor

@G4Vi G4Vi left a comment

Choose a reason for hiding this comment

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

LGTM! This makes performance much more predictable. I tested out extism_plugin_reset and that works as well.

@zshipko zshipko merged commit a5edf58 into main Dec 12, 2023
6 checks passed
@zshipko zshipko deleted the improve-performance-after-large-allocations branch December 12, 2023 21:56
zshipko added a commit to extism/go-sdk that referenced this pull request Dec 13, 2023
zshipko added a commit to extism/ocaml-sdk that referenced this pull request Dec 13, 2023
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.

None yet

2 participants