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

yield() should not allocate #57736

Open
PatrickHaecker opened this issue Mar 12, 2025 · 0 comments
Open

yield() should not allocate #57736

PatrickHaecker opened this issue Mar 12, 2025 · 0 comments

Comments

@PatrickHaecker
Copy link
Contributor

julia> @allocated yield()
64

In an ideal world, yield() should not allocate. I am not sure whether this is possible in general. But my gut feeling is that it should at least be possible when yield() is effectively a no-op as the same task continues.

Maybe being able to preallocate the workqueue so that it does not allocate in practice could be an option?

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