-
Notifications
You must be signed in to change notification settings - Fork 60
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix a bug in object reuse in CompositeByteBuffer (#48)
The buffer size should be less than or equal to the new size for object reuse to utilize the existing buffer in CompositeByteBuffer. The bug was that we previously did not check for equality, leading to spurious memory allocation in the common case where we attempt to reuse arrays with the same number of elements.
- Loading branch information
1 parent
84432ee
commit 4f0f61f
Showing
2 changed files
with
5 additions
and
3 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