Eliminate double-copy of byte array when creating ByteString with varargs
This commit is contained in:
parent
8449647e40
commit
2150dabdc9
1 changed files with 1 additions and 1 deletions
|
|
@ -528,7 +528,7 @@ object CompactByteString {
|
|||
else {
|
||||
val ar = new Array[Byte](bytes.size)
|
||||
bytes.copyToArray(ar)
|
||||
CompactByteString(ar)
|
||||
ByteString.ByteString1C(ar)
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue