this post was submitted on 19 Sep 2024
-4 points (16.7% liked)
Golang
2197 readers
1 users here now
This is a community dedicated to the go programming language.
Useful Links:
Rules:
- Posts must be relevant to Go
- No NSFW content
- No hate speech, bigotry, etc
- Try to keep discussions on topic
- No spam of tools/companies/advertisements
- It’s OK to post your own stuff part of the time, but the primary use of the community should not be self-promotion.
founded 1 year ago
MODERATORS
you are viewing a single comment's thread
view the rest of the comments
view the rest of the comments
Goroutines are amazing and extremely easy to use. However, you should absolutely not include them wherever possible. Using them can in fact slow down a program for which they are not suited (context switching still has a cost), and they introduce non-trivial complexity.
Still, it's nice to see a post with some start-here optimization ideas; many Go optimization articles assume a deep experience with Go and can be daunting.