3 ms·
Despite popular belief, not everything is a (web) server. I can imagine many threads to be appealing in e.g. simulations.
by guenthert 4y ago
Despite popular belief, not everything is a (web) server. I can imagine many threads to be appealing in e.g. simulations.
- uluyol 4y agoSure, but my point is that if you want to run 100k-1m things concurrently, you need to store state for them. That has a memory cost no matter what.
- astrange 4y agoI definitely can’t hire anyone in this thread to work on cell phone performance. We fight for 10 KBs of memory and yes, we are still doing this in 2022. Even on a server, you may have TBs of RAM but you don’t have that much L1 cache nor that much memory bandwidth.
- uluyol 4y agoWhy would you need hundreds of thousands or millions of goroutines for a cell phone app/daemon? I would expect the number (and corresponding memory usage) to therefore be low.