You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@activemq.apache.org by ta...@apache.org on 2007/07/08 03:00:15 UTC

svn commit: r554287 - /activemq/activemq-cpp/trunk/src/main/activemq/util/Properties.h

Author: tabish
Date: Sat Jul  7 18:00:14 2007
New Revision: 554287

URL: http://svn.apache.org/viewvc?view=rev&rev=554287
Log:
http://issues.apache.org/activemq/browse/AMQCPP-128

Properties performance increase

Modified:
    activemq/activemq-cpp/trunk/src/main/activemq/util/Properties.h

Modified: activemq/activemq-cpp/trunk/src/main/activemq/util/Properties.h
URL: http://svn.apache.org/viewvc/activemq/activemq-cpp/trunk/src/main/activemq/util/Properties.h?view=diff&rev=554287&r1=554286&r2=554287
==============================================================================
--- activemq/activemq-cpp/trunk/src/main/activemq/util/Properties.h (original)
+++ activemq/activemq-cpp/trunk/src/main/activemq/util/Properties.h Sat Jul  7 18:00:14 2007
@@ -130,17 +130,6 @@
             std::vector< std::pair<std::string, std::string> > vec(
                     properties.begin(), properties.end() );
 
-//            // Create a vector big enough to hold all the elements in the map.
-//            std::vector< std::pair<std::string, std::string> > vec( properties.size() );
-//
-//            // Get an iterator at the beginning of the map.
-//            std::map< std::string, std::string >::const_iterator iter = properties.begin();
-//
-//            // Copy all of the elements from the map to the vector.
-//            for( int ix=0; iter != properties.end(); ++iter, ++ix ){
-//                vec[ix] = *iter;
-//            }
-
             return vec;
         }