Descriptionruntime: allocate goroutine ids in batches
Helps reduce contention on sched.goidgen.
benchmark old ns/op new ns/op delta
BenchmarkCreateGoroutines-16 259 237 -8.49%
BenchmarkCreateGoroutinesParallel-16 127 43 -66.06%
Patch Set 1 #Patch Set 2 : diff -r d5dbdcc7f614 https://dvyukov%40google.com@code.google.com/p/go/ #Patch Set 3 : diff -r d5dbdcc7f614 https://dvyukov%40google.com@code.google.com/p/go/ #Patch Set 4 : diff -r d5dbdcc7f614 https://dvyukov%40google.com@code.google.com/p/go/ #
Total comments: 1
Patch Set 5 : diff -r d5dbdcc7f614 https://dvyukov%40google.com@code.google.com/p/go/ #Patch Set 6 : diff -r 72c0dfd50949 https://dvyukov%40google.com@code.google.com/p/go/ #MessagesTotal messages: 10
|