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 /config.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 'config.cc')
-rw-r--r-- | config.cc | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -47,8 +47,8 @@ config_t::config_t() static void regexps_to_predicate(config_t& config, - std::deque<std::string>::const_iterator begin, - std::deque<std::string>::const_iterator end, + std::list<std::string>::const_iterator begin, + std::list<std::string>::const_iterator end, const bool account_regexp = false, const bool add_account_short_masks = false) { @@ -57,7 +57,7 @@ regexps_to_predicate(config_t& config, // Treat the remaining command-line arguments as regular // expressions, used for refining report results. - for (std::deque<std::string>::const_iterator i = begin; + for (std::list<std::string>::const_iterator i = begin; i != end; i++) if ((*i)[0] == '-') { @@ -137,7 +137,7 @@ void config_t::process_options(const std::string& command, // Treat the remaining command-line arguments as regular // expressions, used for refining report results. - std::deque<std::string>::iterator i = arg; + std::list<std::string>::iterator i = arg; for (; i != args_end; i++) if (*i == "--") break; |