diff options
author | John Wiegley <johnw@newartisans.com> | 2004-08-21 23:18:45 -0400 |
---|---|---|
committer | John Wiegley <johnw@newartisans.com> | 2004-08-21 23:18:45 -0400 |
commit | 6d5333b89618734e59853ba7da75b920ac40dae0 (patch) | |
tree | 3ddcc232a2c229a2ace5ca739ba7de3889fb6edc /autoxact.h | |
parent | 3ff84b7363575c63129e5b7a5b142896b76dcf06 (diff) | |
download | fork-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.h | 8 |
1 files changed, 8 insertions, 0 deletions
@@ -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(); |