From 804a0c6b47927ff716099bd25f7d12007fa63525 Mon Sep 17 00:00:00 2001 From: Ossama Othman Date: Wed, 28 Jul 1999 17:14:38 +0000 Subject: 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. --- ace/CDR_Stream.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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)); } -- cgit v1.2.1