3 ms·
> The stack for the VT requires a heap allocation One object per stack frame of a virtual thread is cheaper than one callback object per suspension point.
by ackfoobar 3y ago
> The stack for the VT requires a heap allocation
One object per stack frame of a virtual thread is cheaper than one callback object per suspension point.
- winrid 3y agoI guess I'm thinking of cases where I would invoke a virtual thread from a reactive framework per request in which case you need the callback regardless. I guess if you can do away with that then, maybe. I need to benchmark it.