lmi-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[lmi-commits] [4910] Demonstrate a problem


From: Greg Chicares
Subject: [lmi-commits] [4910] Demonstrate a problem
Date: Thu, 06 May 2010 02:52:45 +0000

Revision: 4910
          http://svn.sv.gnu.org/viewvc/?view=rev&root=lmi&revision=4910
Author:   chicares
Date:     2010-05-06 02:52:45 +0000 (Thu, 06 May 2010)
Log Message:
-----------
Demonstrate a problem

Modified Paths:
--------------
    lmi/trunk/ChangeLog
    lmi/trunk/input_test.cpp

Modified: lmi/trunk/ChangeLog
===================================================================
--- lmi/trunk/ChangeLog 2010-05-06 02:26:17 UTC (rev 4909)
+++ lmi/trunk/ChangeLog 2010-05-06 02:52:45 UTC (rev 4910)
@@ -25468,3 +25468,10 @@
 shows eleven marked defects, which is excessive. A glance at the code
 shows that the oft-called product_database::Query(int) is inefficient.
 
+20100506T0252Z <address@hidden> [718]
+
+  input_test.cpp
+Demonstrate a problem. See:
+  http://lists.nongnu.org/archive/html/lmi/2010-05/msg00004.html
+or thereabouts.
+

Modified: lmi/trunk/input_test.cpp
===================================================================
--- lmi/trunk/input_test.cpp    2010-05-06 02:26:17 UTC (rev 4909)
+++ lmi/trunk/input_test.cpp    2010-05-06 02:52:45 UTC (rev 4910)
@@ -96,12 +96,15 @@
     product_database db(yi);
     std::vector<double> v;
 
+    db.GetEntry(-1);
+
     std::cout
         << "\n  Database speed tests..."
         << "\n  Init()           : " << 
TimeAnAliquot(boost::bind(&product_database::Init,            &db))
         << "\n  ConstrainScalar(): " << 
TimeAnAliquot(boost::bind(&product_database::ConstrainScalar, &db, DB_EndtAge))
         << "\n  Query(vector)    : " << 
TimeAnAliquot(boost::bind(&product_database::Query,           &db, v, 
DB_EndtAge))
         << "\n  Query(scalar)    : " << 
TimeAnAliquot(boost::bind(&product_database::Query,           &db, DB_EndtAge))
+        << "\n  GetEntry()       : " << 
TimeAnAliquot(boost::bind(&product_database::GetEntry,        &db, DB_EndtAge))
         << '\n'
         ;
 }





reply via email to

[Prev in Thread] Current Thread [Next in Thread]