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

coro/aio: custom stack allocator for scheduler and custom closure allocator for DynamicThreadPool #2

Open
Cloudef opened this issue Jul 3, 2024 · 0 comments
Labels
enhancement New feature or request

Comments

@Cloudef
Copy link
Owner

Cloudef commented Jul 3, 2024

It is likely when using scheduler, the stack sizes for coroutines don't change often, thus we can reuse the allocated stacks. Similarly the closure for dynamic thread pool is unlikely to change that often.

Ideally if stack sizes never change, the performance should be something similar to using std.heap.MemoryPool for unmanaged stacks.

@Cloudef Cloudef changed the title custom stack allocator for thread pool and custom closure allocator for DynamicThreadPool custom stack allocator for scheduler and custom closure allocator for DynamicThreadPool Jul 3, 2024
@Cloudef Cloudef changed the title custom stack allocator for scheduler and custom closure allocator for DynamicThreadPool coro/aio: custom stack allocator for scheduler and custom closure allocator for DynamicThreadPool Jul 5, 2024
@Cloudef Cloudef added the enhancement New feature or request label Dec 31, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant