Skip to content

Conversation

@rahulKQL
Copy link

@rahulKQL rahulKQL commented Jun 13, 2019

Fixes #5030
Updated UnsafeByteOperations.unsafeWrap as this is still a @ExperimentalApi.

To confirm the impact I ran Range.ByteRangeString#prefix 1 million times with a bounded random string, I observed that with UnsafeByteOperations.unsafeWrap their avg is around ~200ms and after update with ByteString.copyFrom the new avg is ~220ms.(10% decrement in performance).

Fixes googleapis#5030
Updated `UnsafeByteOperations.unsafeWrap` as this is still a `@ExperimentalApi`.
@rahulKQL rahulKQL requested a review from a team as a code owner June 13, 2019 16:13
@googlebot googlebot added the cla: yes This human has signed the Contributor License Agreement. label Jun 13, 2019
@sduskis sduskis added the kokoro:force-run Add this label to force Kokoro to re-run the tests. label Jun 13, 2019
@yoshi-kokoro yoshi-kokoro removed the kokoro:force-run Add this label to force Kokoro to re-run the tests. label Jun 13, 2019
@igorbernstein2
Copy link

I think the performance hit is acceptable here

@pmakani pmakani added the kokoro:force-run Add this label to force Kokoro to re-run the tests. label Jun 17, 2019
@yoshi-kokoro yoshi-kokoro removed the kokoro:force-run Add this label to force Kokoro to re-run the tests. label Jun 17, 2019
@sduskis sduskis merged commit f4ab884 into googleapis:master Jun 17, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

cla: yes This human has signed the Contributor License Agreement.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

google-cloud-bigtable uses unstable protobuf APIs

6 participants