From 0cda87815c59d1530bf86a3a786b4cf40ed73b95 Mon Sep 17 00:00:00 2001 From: Ruslan Cheremin Date: Sat, 2 Sep 2023 20:06:28 +0200 Subject: [PATCH] [vfs] IJPL-192: enable simple but larger file name cache + instead of MRU + SLRU under segmented lock -- use simple MRU but with bigger capacity (same total memory usage since simpler cache structure consumes less memory for itself) GitOrigin-RevId: f0cc090f2c8a16509c7e4afaf989435b0e2da920 --- .../intellij/openapi/vfs/newvfs/persistent/FSRecordsImpl.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/platform/platform-impl/src/com/intellij/openapi/vfs/newvfs/persistent/FSRecordsImpl.java b/platform/platform-impl/src/com/intellij/openapi/vfs/newvfs/persistent/FSRecordsImpl.java index c901e7632ae0..1f78d8cd689e 100644 --- a/platform/platform-impl/src/com/intellij/openapi/vfs/newvfs/persistent/FSRecordsImpl.java +++ b/platform/platform-impl/src/com/intellij/openapi/vfs/newvfs/persistent/FSRecordsImpl.java @@ -86,7 +86,7 @@ public final class FSRecordsImpl { public static final boolean USE_FAST_NAMES_IMPLEMENTATION = getBooleanProperty("vfs.use-fast-names-enumerator", true); private static final boolean USE_FILE_NAME_CACHE = getBooleanProperty("vfs.name-cache.enable", true); - private static final boolean USE_MRU_FILE_NAME_CACHE = getBooleanProperty("vfs.name-cache.use-mru", false); + private static final boolean USE_MRU_FILE_NAME_CACHE = getBooleanProperty("vfs.name-cache.use-mru", true); //TODO RC: must be LOCK_FREE_PAGE_CACHE_ENABLED by default (and eventually just true) public static final boolean USE_CONTENT_STORAGE_OVER_NEW_FILE_PAGE_CACHE = getBooleanProperty("vfs.content-storage.use-lock-free-page-cache", true);