Proposal: pass Mutation and RegionStore by Arc pointer
Little-Wallace opened this issue · 0 comments
Little-Wallace commented
Problem
Client-rust costs a lot of CPU to copy the structure. And most of this copy and allocation is to copy mutation between TransactionClient and kinds of PlanBuilder.
Solution
I think we can store these Mutation and RegionStore of RegionCache as an Arc Pointer. We only need to clone them before we really call gRPC API to send requests.