lmi-commits
[Top][All Lists]
Advanced

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

[lmi-commits] [5400] Suggest a future improvement


From: Greg Chicares
Subject: [lmi-commits] [5400] Suggest a future improvement
Date: Sun, 19 Feb 2012 13:03:12 +0000

Revision: 5400
          http://svn.sv.gnu.org/viewvc/?view=rev&root=lmi&revision=5400
Author:   chicares
Date:     2012-02-19 13:03:08 +0000 (Sun, 19 Feb 2012)
Log Message:
-----------
Suggest a future improvement

Modified Paths:
--------------
    lmi/trunk/ledger_xml_io.cpp

Modified: lmi/trunk/ledger_xml_io.cpp
===================================================================
--- lmi/trunk/ledger_xml_io.cpp 2012-02-19 12:46:30 UTC (rev 5399)
+++ lmi/trunk/ledger_xml_io.cpp 2012-02-19 13:03:08 UTC (rev 5400)
@@ -929,6 +929,10 @@
 </supplementalreport>
 */
 
+// SOMEDAY !! It is inefficient to push_back() data into xml elements
+// and then push_back() those populated elements into the root. Avoid
+// needless copying by using insert() to create the intermediate
+// elements and using the iterator it returns to write leaf elements.
     x.push_back(scalar);
     x.push_back(data);
     x.push_back(supplementalreport);




reply via email to

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