-
Notifications
You must be signed in to change notification settings - Fork 459
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ArrayQueue: remove redundant cap field
cap stores the queue capacity, the number of slots in buffer. There's no additional cost to extracting the length of a slice, so remove cap and use buffer.len() instead.
- Loading branch information
1 parent
253a53f
commit ad3fc88
Showing
1 changed file
with
11 additions
and
14 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