3 ms·
1. increasing performances is not one of the reasons they give for switching, although 2. ultimately getting rid of cgo would probably help a lot anyway, cgo c
by masklinn 3y ago
1. increasing performances is not one of the reasons they give for switching, although
2. ultimately getting rid of cgo would probably help a lot anyway, cgo calls are pretty slow
Also JSON is used when delegating to Go because the Rust binary does not handle the command anyway.
- znkr 3y ago> 2. ultimately getting rid of cgo would probably help a lot anyway, cgo calls are pretty slow It’s slow compared to a function call in C, but it’s still measured in nanoseconds. If you’re not calling C functions from a tight loop in Go it’s unlikely to be noticeable.