-
Notifications
You must be signed in to change notification settings - Fork 298
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
feat(Linker): remove externals from Linker
and make instantiate
to use &self
#512
Conversation
🤔 Maybe I should not alter this method and just add a new one? |
BENCHMARKS
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hmmm this is already the 2nd time you requested this PR.
However, I took another look and the Wasmtime API also takes a &self
reference for the Linker::instantiate
method. So this is indeed bad since we ideally want to mirror the Wasmtime API as closely as possible.
Since your changes do not display significant performance differences I am inclined to actually merging it. However, it is not ideal since we are (again) very dependent on Rust and LLVM optimizing the allocations away. If those optimizations no longer apply we will see significant regressions.
@Robbepop you could keep the inner buf, but add a |
As I said we want to closely mirror the Wasmtime API and since the Wasmtime API does not have 2 APIs for that functionality we won't introduce them either. |
Just a previous PR, but I mainly want to generalize
instantiate
method