Skip to main content
13 events
when toggle format what by license comment
Oct 8, 2023 at 18:54 history edited G. Sliepen
edited tags
Aug 12, 2022 at 9:04 comment added Elias Van Ootegem @woxihuanxiayua Seeing as you're wanting to know whether your use of goroutines (not coroutines) is correct, I'm assuming that at some point you'd want to compare performance between using more/less routines, and how that'd affect overall performance. It's worth getting acquainted with the pprof tool for that
Aug 10, 2022 at 4:40 vote accept woxihuanxiayua
Aug 8, 2022 at 7:34 answer added Elias Van Ootegem timeline score: 2
Aug 1, 2022 at 10:58 comment added Toby Speight Thanks for measuring the performance - that's what I wanted to know!
Jul 31, 2022 at 8:14 comment added woxihuanxiayua In fact, I am asking this question more because I want to know if I am using the coroutine correctly...@TobySpeight
Jul 30, 2022 at 13:26 comment added peterSO @TobySpeight: Rather than rely on expectations, I looked at actual numbers for 269,332 items in a home directory on an SSD drive. While there are diminishing returns, this is Go, so permitting up to 30 goroutines is fine.
Jul 30, 2022 at 13:14 answer added peterSO timeline score: 1
Jul 30, 2022 at 9:06 history edited Toby Speight CC BY-SA 4.0
Minor copy-edits
Jul 30, 2022 at 9:05 comment added Toby Speight Did you measure any benefit over the obvious single-threaded approach? Given that you're probably I/O bound, and good OSes are good at anticipating access patterns, I would expect diminishing returns well before the parallelism reaches 30 ways.
Jul 30, 2022 at 7:02 history edited 200_success CC BY-SA 4.0
added 2 characters in body; edited tags
S Jul 30, 2022 at 1:58 review First questions
Jul 30, 2022 at 9:06
S Jul 30, 2022 at 1:58 history asked woxihuanxiayua CC BY-SA 4.0