Commit d7cd61a
committed
Be a bit more frugal with our compression buffer
For small files (and the remaining bit of large ones, though this is not
as big of a deal), the compression buffer can be sized based on the
remaining data rather than the block size. This often allows it to avoid
being classified as a "medium sized" allocation, saving an expensive
call to madvise when the buffer is freed.1 parent 415f5ca commit d7cd61a
1 file changed
+3
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
127 | 127 | | |
128 | 128 | | |
129 | 129 | | |
130 | | - | |
131 | | - | |
| 130 | + | |
| 131 | + | |
| 132 | + | |
132 | 133 | | |
133 | 134 | | |
134 | 135 | | |
| |||
0 commit comments