2 ms·
Can someone help me understand if I missed something here. Did they negate all the hypothetical performance gains made from Rust by crippling it with JSON IPC?
by jarjoura 3y ago
Can someone help me understand if I missed something here. Did they negate all the hypothetical performance gains made from Rust by crippling it with JSON IPC? If so, the mental overhead of Rust memory management doesn't seem worth it.
- masklinn 3y ago1. 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.