libaco
libaco copied to clipboard
A blazing fast and lightweight C asymmetric coroutine library 💎 ⛅🚀⛅🌞
Hi, our open source lib (https://github.com/alibaba/PhotonLibOS) is based on stackful coroutine, and a high efficiency IO scheduler. Looks like your implementation is based on stackless, would you like to integrate...
Hello, I currently have asynchronous code with callback that I would potentially like to replace with fibers. The operation is simple, I make a parallel for loop on an event...
Hi! I want to build a system with coroutines, but performance is my concern. My question is how to design the system: should I create a fixed number of coroutines...
Do libaco coroutines run on different CPUs at the same time. i.e. does the program performance benefit from having multiple CPUs? Or do coroutines run on only one CPU at...
120byte sounds like a lot. possible to use ideas from here to lower it? https://www.chiark.greenend.org.uk/~sgtatham/coroutines.html 40bytes possible?
I'm wonder how to determine main co and non-main co while executing the same function. As the document said, aco_get_co() should be called by non-main co. How about returning NULL...
To identify whether the function call is directly from main co or from non-main co, one function is added to support reveal the status. aco_gtls_co->main_co is used to identify the...