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

perf: Make far call faster by making it allocate less #5

Closed
wants to merge 3 commits into from

Conversation

joonazan
Copy link
Contributor

Running vm-benchmark revealed that far calls are horribly slow. This is because they allocate the full stack and a large amount of heap memory.

The allocation problem is fixed by reusing stacks and allocating heaps with a small initial size even if they are allowed to grow a lot for free.

Another problem is zeroing the recycled stacks.

@joonazan joonazan closed this Apr 29, 2024
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.

1 participant