runtime: selectgo need not lock all the channels involved in the select #41948
Labels
Comments
Dmitry tried this a while ago: https://go-review.googlesource.com/c/go/+/7570 |
most case it may will work ok,but select is one of the most important role in go, when channel in select increase and Concurrent oparate the channels, the performance will down. |
See also: #8896 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
i read the select function:
why we should lock all the channels?
i think lock one by one when loop may be better , because it will quickly
The text was updated successfully, but these errors were encountered: