From 6d5333b89618734e59853ba7da75b920ac40dae0 Mon Sep 17 00:00:00 2001 From: John Wiegley Date: Sat, 21 Aug 2004 23:18:45 -0400 Subject: use value_t instead of balance_pair_t; gains for 10% binary, 2% textual --- autoxact.h | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'autoxact.h') 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(); -- cgit v1.2.3