News for hackers. Stuff that matters.
Re:Another go at Go failed by falcolas on Wednesday January 08, 2014 @01:22PM (#7025367)
If you generate a lot of goroutines, the overhead for maintaining and scheduling them is fairly significant, particularly when compared to constructs like Python generators.

I've demonstrated this myself by comparing the goroutines example prime number generator to a similar version written using Python generators.

The python generator code was faster, but there was a hard limit to how many primes could be calculated this way; I hit the stack limit.

[Edit] Code & times: http://pastebin.com/CqkMcxdK

There are no comments on this comment yet.