-
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.
kvflowcontrol: performance optimizations in tracker.go
This patch makes 2 main performance optimizations in the tracker codepath: 1. Replace the trackedList with a struct that points to a list. This avoids map assignments each time anything is appended to the list. 2. We use a sync.Pool for tracked items to avoid frequent allocations and gc for the objects. Informs #104154. Release note: None
- Loading branch information
1 parent
0ff99f1
commit f5bca80
Showing
1 changed file
with
47 additions
and
25 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