diff options
author | Michajlo Matijkiw <michajlo@google.com> | 2016-11-02 17:45:31 +0000 |
---|---|---|
committer | Laszlo Csomor <laszlocsomor@google.com> | 2016-11-03 07:17:00 +0000 |
commit | f7a5769187a11d4d15ed685abf55338eaeafdc12 (patch) | |
tree | 41f8322e880091dd6f2619fa7a42f8b6d96b374d /.gitignore | |
parent | d0761e6a641a33ca9e4ec8bf3f5c92f74a4c3c86 (diff) |
Store and use commandId and cookie as ByteStrings
We wind up doing String -> UTF8 bytes conversion for every message serialized
(this happens in protocol buffer land). Do the conversion once and reuse the
immutable value instead of doing it for every chunk of output written.
Keep this optimization local to RpcOutputStream where we see a lot of
repitition - using ByteStrings in place of Strings can get confusing when it
comes to logging, so only apply this optimization where it could count.
--
MOS_MIGRATED_REVID=137964305
Diffstat (limited to '.gitignore')
0 files changed, 0 insertions, 0 deletions