tikv / grpc-rs

The gRPC library for Rust built on C Core library and futures
Apache License 2.0
1.8k stars 253 forks source link

performance: more cost on CPU when upgrading to v0.13.0 #643

Open LykxSassinator opened 10 months ago

LykxSassinator commented 10 months ago

Problem Descriptions

When trying to upgrade the grpcio version from v0.10.3 to the latest version v0.13.0 in TiKV, it seems that it costs more CPU compared to the previous version v0.10.3.

And according to profiling flame-graph, the grpcio module might introduce more cost on CompletionQueue::next().

Source profiling files can be reviewed in: comparison.zip

BusyJay commented 6 months ago

Also check the release note in https://github.com/tikv/grpc-rs/releases/tag/v0.12.0.