Re:Notes on structured concurrency, or: Go statement conside...
by suremarc on Saturday July 02, 2022 @01:02PM
(#31960654)
What kind of _small_ computation are you doing that requires 50 whole milliseconds?
Re:Notes on structured concurrency, or: Go statement conside...
by ohgodplsno on Sunday July 03, 2022 @12:44PM
(#31969045)
You'd be surprised how easy it is to find junior devs iterating over a whole list to find something by its ID instead of using a hashmap.
Actually not just juniors I also do it sometimes but shhh
Structured concurrency just means that i can both not really care where it goes, be generous on coroutines (I have only screwed up once, and that was by having hundreds of threads deadlocking on database access. Otherwise, you most likely have... 50 running at worst?). Structured concurrency also means that the moment i drop out of a screen, every computation launched in the context of this screen and not a higher level is just dropped immediately, meaning it runs just when I need it to