From d06d6c69645c4d355772cb19043469328c05ccc5 Mon Sep 17 00:00:00 2001 From: ridiculousfish Date: Tue, 17 Jul 2012 12:47:01 -0700 Subject: Various changes to reduce fish's compiled code size OS X release build executable size dropped from 672k to 511k --- intern.cpp | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'intern.cpp') diff --git a/intern.cpp b/intern.cpp index 224b9ca6..87480ea1 100644 --- a/intern.cpp +++ b/intern.cpp @@ -11,7 +11,6 @@ #include #include #include -#include #include #include "fallback.h" @@ -29,14 +28,14 @@ class string_table_compare_t { } }; -/* A sorted deque ends up being a little more memory efficient than a std::set for the intern'd string table */ +/* A sorted vector ends up being a little more memory efficient than a std::set for the intern'd string table */ #define USE_SET 0 #if USE_SET /** The table of intern'd strings */ typedef std::set string_table_t; #else /** The table of intern'd strings */ -typedef std::deque string_table_t; +typedef std::vector string_table_t; #endif static string_table_t string_table; -- cgit v1.2.3