From d8eddaa0bd51ac98cd27a35fc5c8453f8ee7bcd1 Mon Sep 17 00:00:00 2001 From: "deanm@chromium.org" Date: Tue, 23 Sep 2008 12:32:43 +0000 Subject: [PATCH] Enable string pooling in the VS release build. This saves 46k for a v8_shell_sample.exe, I didn't measure performance or the overall change to a Chromium build. I think this option should always make sense anyway, unless we're using some string constants incorrectly. git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@365 ce2b1a6d-e550-0410-aec6-3dcde31c8c00 --- SConstruct | 4 ++-- tools/visual_studio/release.vsprops | 1 + 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/SConstruct b/SConstruct index 63d97d8..28719ba 100644 --- a/SConstruct +++ b/SConstruct @@ -77,7 +77,7 @@ LIBRARY_FLAGS = { 'LINKFLAGS': ['/DEBUG'] }, 'mode:release': { - 'CCFLAGS': ['/Ox', '/MT'], + 'CCFLAGS': ['/Ox', '/MT', '/GF'], 'LINKFLAGS': ['/OPT:REF', '/OPT:ICF'] } } @@ -202,7 +202,7 @@ SAMPLE_FLAGS = { 'CPPDEFINES': ['USING_V8_SHARED'] }, 'mode:release': { - 'CCFLAGS': ['/Ox', '/MT'], + 'CCFLAGS': ['/Ox', '/MT', '/GF'], 'LINKFLAGS': ['/OPT:REF', '/OPT:ICF'] }, 'mode:debug': { diff --git a/tools/visual_studio/release.vsprops b/tools/visual_studio/release.vsprops index 311e7cf..41b1ccd 100644 --- a/tools/visual_studio/release.vsprops +++ b/tools/visual_studio/release.vsprops @@ -12,6 +12,7 @@ EnableIntrinsicFunctions="true" FavorSizeOrSpeed="0" OmitFramePointers="true" + StringPooling="true" />