diff options
author | Ossama Othman <ossama-othman@users.noreply.github.com> | 1999-07-28 17:14:38 +0000 |
---|---|---|
committer | Ossama Othman <ossama-othman@users.noreply.github.com> | 1999-07-28 17:14:38 +0000 |
commit | 804a0c6b47927ff716099bd25f7d12007fa63525 (patch) | |
tree | 806c76ed77fed8cb4d89420b0887635703614b31 | |
parent | a438e47836deed324d9ae54835fea5c43dcc0420 (diff) | |
download | ATCD-804a0c6b47927ff716099bd25f7d12007fa63525.tar.gz |
Modified call to clone() so that it uses the newly added
zero-copy semantics. A data copy was already being made in
ACE_InputCDR::steal_from(), which also calls
ACE_InputCDR::reset_contents(). Two data copies were being
performed. This change reduces the number of data copies to
one. Thanks to Carlos for this change.
-rw-r--r-- | ace/CDR_Stream.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ace/CDR_Stream.cpp b/ace/CDR_Stream.cpp index e64d13b2791..02d32631cf5 100644 --- a/ace/CDR_Stream.cpp +++ b/ace/CDR_Stream.cpp @@ -1032,5 +1032,5 @@ ACE_InputCDR::steal_contents (void) void ACE_InputCDR::reset_contents (void) { - this->start_.data_block (this->start_.data_block ()->clone ()); + this->start_.data_block (this->start_.data_block ()->clone (0, 0)); } |