Return-Path: Delivered-To: apmail-activemq-commits-archive@www.apache.org Received: (qmail 11384 invoked from network); 10 Jun 2007 15:55:53 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 10 Jun 2007 15:55:53 -0000 Received: (qmail 67682 invoked by uid 500); 10 Jun 2007 15:55:57 -0000 Delivered-To: apmail-activemq-commits-archive@activemq.apache.org Received: (qmail 67632 invoked by uid 500); 10 Jun 2007 15:55:57 -0000 Mailing-List: contact commits-help@activemq.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@activemq.apache.org Delivered-To: mailing list commits@activemq.apache.org Received: (qmail 67622 invoked by uid 99); 10 Jun 2007 15:55:57 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 10 Jun 2007 08:55:57 -0700 X-ASF-Spam-Status: No, hits=-99.5 required=10.0 tests=ALL_TRUSTED,NO_REAL_NAME X-Spam-Check-By: apache.org Received: from [140.211.11.3] (HELO eris.apache.org) (140.211.11.3) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 10 Jun 2007 08:55:53 -0700 Received: by eris.apache.org (Postfix, from userid 65534) id 455461A981A; Sun, 10 Jun 2007 08:55:33 -0700 (PDT) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: svn commit: r545903 - /activemq/activemq-cpp/trunk/src/main/activemq/io/DataOutputStream.cpp Date: Sun, 10 Jun 2007 15:55:33 -0000 To: commits@activemq.apache.org From: tabish@apache.org X-Mailer: svnmailer-1.1.0 Message-Id: <20070610155533.455461A981A@eris.apache.org> X-Virus-Checked: Checked by ClamAV on apache.org Author: tabish Date: Sun Jun 10 08:55:32 2007 New Revision: 545903 URL: http://svn.apache.org/viewvc?view=rev&rev=545903 Log: https://issues.apache.org/activemq/browse/AMQCPP-93 Slight tweaks for performance, not much to do since this one is so simple. Modified: activemq/activemq-cpp/trunk/src/main/activemq/io/DataOutputStream.cpp Modified: activemq/activemq-cpp/trunk/src/main/activemq/io/DataOutputStream.cpp URL: http://svn.apache.org/viewvc/activemq/activemq-cpp/trunk/src/main/activemq/io/DataOutputStream.cpp?view=diff&rev=545903&r1=545902&r2=545903 ============================================================================== --- activemq/activemq-cpp/trunk/src/main/activemq/io/DataOutputStream.cpp (original) +++ activemq/activemq-cpp/trunk/src/main/activemq/io/DataOutputStream.cpp Sun Jun 10 08:55:32 2007 @@ -172,7 +172,6 @@ unsigned int lvalue = 0; memcpy( &lvalue, &value, sizeof( float ) ); this->writeInt( lvalue ); - memcpy( &value, &lvalue, sizeof( unsigned int ) ); } AMQ_CATCH_RETHROW( IOException ) AMQ_CATCHALL_THROW( IOException ) @@ -184,7 +183,6 @@ unsigned long long lvalue = 0; memcpy( &lvalue, &value, sizeof( double ) ); this->writeLong( lvalue ); - memcpy( &value, &lvalue, sizeof( unsigned long long ) ); } AMQ_CATCH_RETHROW( IOException ) AMQ_CATCHALL_THROW( IOException )