Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

> 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.



I 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.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: