From fcaaa372019b525980e40b148a1d542ab3acced9 Mon Sep 17 00:00:00 2001 From: John Wiegley Date: Mon, 6 Sep 2004 05:38:32 -0400 Subject: switch from using deque back to list; affects speed by up to 30%! --- walk.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'walk.cc') 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(sort_order)); - for (std::deque::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::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); -- cgit v1.2.3