diff options
author | John Wiegley <johnw@newartisans.com> | 2004-09-06 05:38:32 -0400 |
---|---|---|
committer | John Wiegley <johnw@newartisans.com> | 2004-09-06 05:38:32 -0400 |
commit | fcaaa372019b525980e40b148a1d542ab3acced9 (patch) | |
tree | 568e2715bdc27817c39d25062bd1b22b5812f244 /walk.cc | |
parent | 305c6159afe727c6e6f2f49c37789922df1a5a98 (diff) | |
download | fork-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.cc | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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); |