diff options
author | Nicolas Lacasse <nlacasse@google.com> | 2019-02-08 12:59:04 -0800 |
---|---|---|
committer | Shentubot <shentubot@google.com> | 2019-02-08 13:00:00 -0800 |
commit | 9c9386d2a8c041f3c1f19469b47414c419f7d534 (patch) | |
tree | 2cb0db5fcf8facb2b70da11812c67341cd3a39a3 /pkg/tcpip/link/muxed | |
parent | 5079b38a9af1d66ad720005d7487dd711a0cb713 (diff) |
CopyObjectOut should allocate a byte slice the size of the encoded object.
This adds an extra Reflection call to CopyObjectOut, but avoids many small
slice allocations if the object is large, since without this we grow the
backing slice incrementally as we encode more data.
PiperOrigin-RevId: 233110960
Change-Id: I93569af55912391e5471277f779139c23f040147
Diffstat (limited to 'pkg/tcpip/link/muxed')
0 files changed, 0 insertions, 0 deletions