-
Notifications
You must be signed in to change notification settings - Fork 656
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use power of two for underlying storage of CircularBuffer (#313)
Motivation: We should use power of two for the underlying storage to allow us to make use of bitmasking which is faster then modulo operations. Modifications: Use power of two and replace module with bitmasking. Result: Faster implementation of CircularBuffer.
- Loading branch information
1 parent
7fe7ed6
commit cbb3f19
Showing
3 changed files
with
92 additions
and
45 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