Skip to content
Discussion options

You must be logged in to vote

Hi there! thanks for your thoughts, I've not actually explored setjmp, it looks like it could be faster but may cause some problems when working with objects with with non-trivial destructors. My benchmarking at the moment suggests coroutines currently have an overhead somewhere between 8-15 time greater than a regular function call and often prevent inlining. Currently I am avoiding the cactus stack with a lot of dynamic allocation, I am working to reduce the allocations as compilers are not that good at it at the moment.

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by ConorWilliams
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants