summaryrefslogtreecommitdiff
path: root/autoxact.h
diff options
context:
space:
mode:
authorJohn Wiegley <johnw@newartisans.com>2004-08-21 23:18:45 -0400
committerJohn Wiegley <johnw@newartisans.com>2004-08-21 23:18:45 -0400
commit6d5333b89618734e59853ba7da75b920ac40dae0 (patch)
tree3ddcc232a2c229a2ace5ca739ba7de3889fb6edc /autoxact.h
parent3ff84b7363575c63129e5b7a5b142896b76dcf06 (diff)
downloadfork-ledger-6d5333b89618734e59853ba7da75b920ac40dae0.tar.gz
fork-ledger-6d5333b89618734e59853ba7da75b920ac40dae0.tar.bz2
fork-ledger-6d5333b89618734e59853ba7da75b920ac40dae0.zip
use value_t instead of balance_pair_t; gains for 10% binary, 2% textual
Diffstat (limited to 'autoxact.h')
-rw-r--r--autoxact.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/autoxact.h b/autoxact.h
index 76c67c3f..1a6ad3ea 100644
--- a/autoxact.h
+++ b/autoxact.h
@@ -19,6 +19,7 @@ public:
automated_transaction_t(const std::string& _predicate,
transactions_deque& _transactions)
: predicate(_predicate) {
+ DEBUG_PRINT("ledger.memory.ctors", "ctor automated_transaction_t");
transactions.insert(transactions.begin(),
_transactions.begin(), _transactions.end());
// Take over ownership of the pointers
@@ -26,6 +27,7 @@ public:
}
~automated_transaction_t() {
+ DEBUG_PRINT("ledger.memory.dtors", "dtor automated_transaction_t");
for (transactions_deque::iterator i = transactions.begin();
i != transactions.end();
i++)
@@ -43,7 +45,13 @@ class automated_transactions_t
public:
automated_transactions_deque automated_transactions;
+#ifdef DEBUG_ENABLED
+ automated_transactions_t() {
+ DEBUG_PRINT("ledger.memory.ctors", "ctor automated_transactions_t");
+ }
+#endif
~automated_transactions_t() {
+ DEBUG_PRINT("ledger.memory.dtors", "dtor automated_transactions_t");
for (automated_transactions_deque::iterator i
= automated_transactions.begin();
i != automated_transactions.end();