On Monday, March 15, 2021 at 12:58:38 PM UTC-5 Ian Lance Taylor wrote:

> I think it is too strong to say that the scheduler is the "bottleneck" 
> in calling C code, but I believe that the operations required to tell 
> the scheduler what is happening to the goroutine are the most costly 
> parts of a call into C code.
>

Thanks Ian! I looked through 
https://github.com/golang/go/tree/master/src/cmd/cgo but couldn't
locate where the CGO communication with the scheduler happens. Could you 
point out the code?

 

-- 
You received this message because you are subscribed to the Google Groups 
"golang-nuts" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to golang-nuts+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/golang-nuts/cd368609-f42d-43fa-ab38-6aec43d9cd1dn%40googlegroups.com.

Reply via email to