Proposal: pass Mutation and RegionStore by Arc pointer #321
Labels
enhancement
New feature or request
good first issue
Denotes an issue ready for a new contributor, according to the "help wanted" guidelines.
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.
The text was updated successfully, but these errors were encountered: