summaryrefslogtreecommitdiff
path: root/walk.cc
diff options
context:
space:
mode:
authorJohn Wiegley <johnw@newartisans.com>2004-09-06 05:38:32 -0400
committerJohn Wiegley <johnw@newartisans.com>2004-09-06 05:38:32 -0400
commitfcaaa372019b525980e40b148a1d542ab3acced9 (patch)
tree568e2715bdc27817c39d25062bd1b22b5812f244 /walk.cc
parent305c6159afe727c6e6f2f49c37789922df1a5a98 (diff)
downloadfork-ledger-fcaaa372019b525980e40b148a1d542ab3acced9.tar.gz
fork-ledger-fcaaa372019b525980e40b148a1d542ab3acced9.tar.bz2
fork-ledger-fcaaa372019b525980e40b148a1d542ab3acced9.zip
switch from using deque back to list; affects speed by up to 30%!
Diffstat (limited to 'walk.cc')
-rw-r--r--walk.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/walk.cc b/walk.cc
index a8111597..61c3fa30 100644
--- a/walk.cc
+++ b/walk.cc
@@ -8,7 +8,7 @@ void sort_transactions::flush()
std::stable_sort(transactions.begin(), transactions.end(),
compare_items<transaction_t>(sort_order));
- for (std::deque<transaction_t *>::iterator i = transactions.begin();
+ for (transactions_deque::iterator i = transactions.begin();
i != transactions.end();
i++)
(*handler)(**i);
@@ -290,7 +290,7 @@ void interval_transactions::operator()(transaction_t& xact)
void dow_transactions::flush()
{
for (int i = 0; i < 7; i++) {
- for (std::deque<transaction_t *>::iterator d = days_of_the_week[i].begin();
+ for (transactions_list::iterator d = days_of_the_week[i].begin();
d != days_of_the_week[i].end();
d++)
subtotal_transactions::operator()(**d);