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

Remove excess pointer-wrapped-in-struct #148

Open
dgryski opened this issue Dec 17, 2024 · 0 comments
Open

Remove excess pointer-wrapped-in-struct #148

dgryski opened this issue Dec 17, 2024 · 0 comments

Comments

@dgryski
Copy link
Member

dgryski commented Dec 17, 2024

We have a number of places where hostcall handles (a uint32) are wrapped in structs, which are then returned as pointers to the SDK, which are then wrapped in structs and returned as poiters to the users of the SDK. This results in potentially more small allocations, when we could probably get away with having value types which can live on the stack or in registers.

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

1 participant