3 ms·
> That doesn't make this point wrong: 4 KB is still a lot more than the couple of bytes a future might need. It makes the memory usage acceptable in many conte
by scottlamb 3y ago
> That doesn't make this point wrong: 4 KB is still a lot more than the couple of bytes a future might need.
It makes the memory usage acceptable in many contexts. E.g., 4 KiB is small compared to a socket buffer. YMMV.
> And setting up the page table is part of what makes spawning threads so expensive.
Stacks can be reused.