3 ms·
Returning a channel is not really a cheap operation. They internally have locks that slow everything down as they are intended mostly as a safe concurrency prim
by aziis98 3y ago
Returning a channel is not really a cheap operation. They internally have locks that slow everything down as they are intended mostly as a safe concurrency primitive
And in this case there is really no need to spawn goroutines to support iterators