address a TODO

pull/19792/head
Jan Tattermusch 5 years ago
parent ec351c1ac2
commit 36dcea650d
  1. 5
      src/csharp/ext/grpc_csharp_ext.c

@ -1238,8 +1238,9 @@ grpcsharp_slice_buffer_adjust_tail_space(grpc_slice_buffer* buffer, size_t avail
}
grpc_slice new_slice = grpc_slice_malloc(requested_tail_space);
// TODO: this always adds as a new slice entry into the sb, but it doesn't have the problem of
// sometimes splitting the continguous new_slice across two different slices (like grpc_slice_buffer_add would)
// grpc_slice_buffer_add_indexed always adds as a new slice entry into the sb (which is suboptimal in some cases)
// but it doesn't have the problem of sometimes splitting the continguous new_slice across two different slices
// (like grpc_slice_buffer_add would)
grpc_slice_buffer_add_indexed(buffer, new_slice);
}

Loading…
Cancel
Save