Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
Some improvement to BufferBlocks to make them more efficient.
They now track how many spaces are allocated in them, so we don't have to walk a completely full buffer to find out there aren't any empty slots. Also, get_buffer() can now tell you what block it came from, to make mapping from the buffer object to its containing block easier.
- Loading branch information
Showing
1 changed file
with
60 additions
and
35 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