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

Understanding "Zero Allocation" #652

Closed
CaledoniaProject opened this issue Feb 26, 2024 · 1 comment
Closed

Understanding "Zero Allocation" #652

CaledoniaProject opened this issue Feb 26, 2024 · 1 comment

Comments

@CaledoniaProject
Copy link

Hi there, I'm wondering what "Zero Allocation" means? If you're talking about "No data copy", I'm wondering how it's implemented.

@mitar
Copy link
Contributor

mitar commented Feb 26, 2024

It means that the average amount of allocation on heap is zero, which is expensive because it has to be garbage collected. It still allocates on stack, but allocating and freeing on stack is cheaper.

@rs rs closed this as completed Mar 2, 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

No branches or pull requests

3 participants