diff options
author | ananta@chromium.org <ananta@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-07-09 18:31:15 +0000 |
---|---|---|
committer | ananta@chromium.org <ananta@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-07-09 18:31:15 +0000 |
commit | 58ac02413feab74b8d574229df1f05b09665b46b (patch) | |
tree | 814de6904c2dc36934125da0612bcc650dc131bf | |
parent | 539b3d8e469b5e2eb7f5609a356ba8a2f142f565 (diff) | |
download | chromium_src-58ac02413feab74b8d574229df1f05b09665b46b.zip chromium_src-58ac02413feab74b8d574229df1f05b09665b46b.tar.gz chromium_src-58ac02413feab74b8d574229df1f05b09665b46b.tar.bz2 |
PreRead chrome.dll only for release builds.
Bug=45510
Review URL: http://codereview.chromium.org/2918003
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@51988 0039d316-1c4b-4281-b951-d872f2087c98
-rw-r--r-- | chrome/app/client_util.cc | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/chrome/app/client_util.cc b/chrome/app/client_util.cc index a47f3cb..9f5d596 100644 --- a/chrome/app/client_util.cc +++ b/chrome/app/client_util.cc @@ -108,6 +108,7 @@ HMODULE LoadChromeWithDirectory(std::wstring* dir) { dir->append(installer_util::kChromeDll); #endif +#ifdef NDEBUG // Experimental pre-reading optimization // The idea is to pre read significant portion of chrome.dll in advance // so that subsequent hard page faults are avoided. @@ -142,6 +143,7 @@ HMODULE LoadChromeWithDirectory(std::wstring* dir) { file_util::PreReadImage(dir->c_str(), pre_read_size, pre_read_step_size); } } +#endif // NDEBUG return ::LoadLibraryExW(dir->c_str(), NULL, LOAD_WITH_ALTERED_SEARCH_PATH); |