Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Avoid the use of a local window when splitting
The splitting code in `bupsplit.c` was written as if it had to handle the case where bytes were fed one by-one, but it actually gets the whole data chunk: there's no need to copy to a local window, when we have the original data available: we can simply use the passed data to fetch the byte that is leaving the current window. Additionally, try to use __builtin_ctz for filling in the bits ptr, if it is available. Signed-off-by: Zachary Dremann <dremann@gmail.com>
- Loading branch information
Showing
1 changed file
with
49 additions
and
32 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