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

Performance motivations for call tags? #5

Open
tlively opened this issue Oct 5, 2021 · 1 comment
Open

Performance motivations for call tags? #5

tlively opened this issue Oct 5, 2021 · 1 comment

Comments

@tlively
Copy link
Member

tlively commented Oct 5, 2021

In WebAssembly/gc#243 (comment) and in other recent discussions, call tags have been raised as a potential solution for various performance problems that come up when compiling to Wasm GC. The call tags explainer describes call tags primarily as a mechanism for enforcing program invariants rather than performance, so it would be good to have the performance motivations written up as well.

@RossTate
Copy link
Collaborator

RossTate commented Oct 5, 2021

Good point. We recently implemented the low-level feature (though not in WebAssembly) and used it to implement an object-oriented language. Our experiments found it both performs extremely well and is very flexible, which is why it's been coming up. I'll put in a PR outlining some examples of how we've made use of them (and giving intuition as to why it performs well in those examples).

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

No branches or pull requests

2 participants