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

Add ability to configure allocation_strategy #323

Merged
merged 2 commits into from
May 11, 2024
Merged

Add ability to configure allocation_strategy #323

merged 2 commits into from
May 11, 2024

Conversation

ianks
Copy link
Collaborator

@ianks ianks commented May 9, 2024

This PR adds the ability to configure which instance allocation strategy to use.

Wasmtime::Engine.new(allocation_strategy: :pooling)

allocation_strategy = Wasmtime::PoolingAllocationConfig.new do |c|
  c.total_memories = 42
end
Wasmtime::Engine.new(allocation_strategy:)

@saulecabrera
Copy link
Member

I've pushed a commit here #322 which would solve the macos-latest and ruby 3.1 issues, once that's merged, you can rebase.

@ianks ianks enabled auto-merge (squash) May 11, 2024 03:34
@ianks ianks merged commit c73fff8 into main May 11, 2024
23 checks passed
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