Does it make sense to reduce amount of goroutines? #762
AskAlexSharov
started this conversation in
Ideas
Replies: 1 comment
-
I'm open to an alternative, but I'm not sure there's a nice one that provides the same level of clean synchronization than the goroutines. They likely require timers and scans and such, and this design is to allow announces to occur synchronously with changes in client state. I have a few observations:
Let me know what you think. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Now it creating: amountOfFiles*amountOfTorrents goroutines to scrape trackers
For example I have system with 87 files (we will have 200 soon) with 7 trackers in each torrent (same 7 trackers), and it producing next amount of goroutines:
It's not a big deal from performance point of view.
But, even if App doesn't have any load (no seed, no download, no work), it still has unusable big trace (for example if need find deadlock in app).
Also if I will increase amount of trackers from 7 to 8, it will add 200 new goroutines to my App (smells wrong).
Beta Was this translation helpful? Give feedback.
All reactions