Change Disk Cache type (BlockFile->Simple) 05/317205/7
authorYoungman Son <yman.son@samsung.com>
Thu, 5 Sep 2024 12:30:04 +0000 (21:30 +0900)
committerYoungman Son <yman.son@samsung.com>
Fri, 6 Sep 2024 02:41:20 +0000 (11:41 +0900)
BlockFile type is slow in performance due to the large number of files
that need to be read from the disk. (launching performance issue)
So change it to a Simple cache.

Simple Cache reads fewer files than BlockFile when accessing the cache.
(BlockFile 5 files -> Simple Cache 1 file)

Analysis Result:https://confluence.sec.samsung.net/x/wBdwIQ

Change-Id: Ic75b664f0580bf930f2ae41e33780fac58aeea4b
Signed-off-by: Youngman Son <yman.son@samsung.com>
components/network_session_configurator/browser/network_session_configurator.cc

index a560e5cd125043e374cdb559691f27107694a34d..83535a75338420268a215c02bd8189c375efd0bb 100644 (file)
@@ -800,9 +800,8 @@ net::URLRequestContextBuilder::HttpCacheParams::Type ChooseCacheType() {
   // muddles the experiment data, but as this was written to be considered for
   // backport, having it behave differently than in stable would be a bigger
   // problem. TODO: Does this work in later macOS releases?
-#if (BUILDFLAG(IS_ANDROID) || BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) || \
-     BUILDFLAG(IS_MAC)) &&                                                     \
-    !BUILDFLAG(IS_TIZEN_TV)
+#if BUILDFLAG(IS_ANDROID) || BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) || \
+    BUILDFLAG(IS_MAC) || BUILDFLAG(IS_TIZEN_TV)
   return net::URLRequestContextBuilder::HttpCacheParams::DISK_SIMPLE;
 #else
   return net::URLRequestContextBuilder::HttpCacheParams::DISK_BLOCKFILE;