Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Restructure
BitMut
to fit in two words
Suggested by GitHub user @ImmemorConsultrixContrarie in PR #41, this change structures the `BitMut` proxy reference as a memory pointer, bit index, and bit cache. This structure fits within two words instead of three (a full `&mut BitSlice` is not necessary, as the structure only ever refers to one bit in one element). This is purely a stack optimization; it has no effect on the language-level inability to use it as the reference value in ordinary access operations.
- Loading branch information
Showing
2 changed files
with
28 additions
and
11 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