-
Notifications
You must be signed in to change notification settings - Fork 461
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[MINOR] Lazy write buffer optimization
This commit optimize the lazy write buffer to pass through byte arrays if provided instead of lazily evaulating them. If provided byte arrays are large enough this is faster than the previous lazy evaluation. Especially because we previously copied over the byte array allocating the elements twice, This commit also fixes a bug where if you provide a byte array that is larger than the buffer it does not crash. Closes #1972
- Loading branch information
1 parent
91291b6
commit 23bcd6d
Showing
1 changed file
with
85 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