-
Notifications
You must be signed in to change notification settings - Fork 3.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
28855: kv: give Transport a haircut r=nvanbenschoten a=nvanbenschoten This includes 5 refactors to `kv.Transport` that will make it a lot easier to extend for RangeFeed changes. They should also provide modest perf benefits due to reduced locking and allocation avoidance. The changes include: - adding `BatchRequest` to `Transport.SendNext` instead of capturing in `Transport` - ripping out `Transport.GetPending` and `batchClient.pending` - ripping out `clientPendingMu` from `grpcTransport` - removing `nodeID` from `batchClient` - ripping out `Transport.Close` No need to review yet. Pushing for CI. Co-authored-by: Nathan VanBenschoten <[email protected]>
- Loading branch information
Showing
10 changed files
with
144 additions
and
214 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.