-
Notifications
You must be signed in to change notification settings - Fork 125
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
change heapManager from sync to buffered chan
Write to heapManager chan is confined within (*Progress).serve goroutine so there is no need to keep it synchronized as it's a FIFO channel in essence. Making it buffered allows calling its methods without go keyword and without sync.WaitGroup book keeping inside critical render-loop methods. The trade-off is that some default buffer size (queue len) must be choosen.
- Loading branch information
1 parent
99ffa83
commit d7a6ee4
Showing
2 changed files
with
22 additions
and
20 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