3 ms·
Impressive. 8KiB stacks are a bit on the small side though for production usage. Go gets away with this because they're stacks act more like Vectors then flat
by valarauca1 10y ago
Impressive.
8KiB stacks are a bit on the small side though for production usage. Go gets away with this because they're stacks act more like Vectors then flat arrays.
Why did you decided to roll your own stack swapping software instead of using say using `boost::context`?
- saman_b 10y agoRight, however segmented stacks are have high overhead and stack copying is not very easy in C/C++. Thus, for now uThreads only support fixed size stacks, I know it makes it harder to be used in production, and in the future I might provide optional segmented stacks. As for why not using `boost::context`, I am implementing uThreads as part of my research in uwaterloo, I wanted to have full control over the code and be able to optimize for performance as much as I can. Thus, tried to avoid relying on any third party code when I started :)
- pg_is_a_butt 10y agoand yet you're relying on a compiler and linked libraries you didn't write. you're all idiots.