2 ms·
> coroutines will (often) only use a single core That's generally the desired behavior. If you have decoupled, parallel workloads they're going to naturally b
by ajross 3y ago
> coroutines will (often) only use a single core
That's generally the desired behavior. If you have decoupled, parallel workloads they're going to naturally be working on disjoint data. The idea behind coroutines is that you have some kind of local workload with synchronous data that, for whatever reason, is easiest to express "inside out" with a function that gets to loop over something and "push" the results to its abstracted consumer whose code lives somewhere else, vs. the natural functional paradigm where the inner loop is a conceptual "pull" controlled by the caller.
- repelsteeltje 3y agoThank you for eloquently expressing an observation I probably should have learned years ago.