diff options
author | ridiculousfish <corydoras@ridiculousfish.com> | 2012-07-17 12:47:01 -0700 |
---|---|---|
committer | ridiculousfish <corydoras@ridiculousfish.com> | 2012-07-17 12:47:01 -0700 |
commit | d06d6c69645c4d355772cb19043469328c05ccc5 (patch) | |
tree | ba9f91943b94b9b59b3e781580eca5d3230ac493 /history.h | |
parent | 977a4477f646e344e66a7b0bc22e2e89b72d20db (diff) |
Various changes to reduce fish's compiled code size
OS X release build executable size dropped from 672k to 511k
Diffstat (limited to 'history.h')
-rw-r--r-- | history.h | 5 |
1 files changed, 2 insertions, 3 deletions
@@ -9,7 +9,6 @@ #include "common.h" #include "pthread.h" #include <vector> -#include <deque> #include <utility> #include <list> #include <tr1/memory> @@ -123,7 +122,7 @@ private: void populate_from_mmap(void); /** List of old items, as offsets into out mmap data */ - std::deque<size_t> old_item_offsets; + std::vector<size_t> old_item_offsets; /** Whether we've loaded old items */ bool loaded_old; @@ -186,7 +185,7 @@ class history_search_t { /** Our list of previous matches as index, value. The end is the current match. */ typedef std::pair<size_t, history_item_t> prev_match_t; - std::deque<prev_match_t> prev_matches; + std::vector<prev_match_t> prev_matches; /** Returns yes if a given term is in prev_matches. */ bool match_already_made(const wcstring &match) const; |