From e07a2e7a08dbc85c814eb8f71f90cb68be038fd6 Mon Sep 17 00:00:00 2001 From: Ruslan Cheremin Date: Mon, 31 Jul 2023 19:38:49 +0200 Subject: [PATCH] [core] IJPL-51 read CHILDREN via raw attributes access by default + `-Dvfs.use-raw-access-to-read-children=true` GitOrigin-RevId: 240b73eb7a48a979d574e2abb6fabc0b8a454f09 --- .../openapi/vfs/newvfs/persistent/FSRecordsImpl.java | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) 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 246bbb4ad3b0..5c59eb7ae404 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 @@ -83,6 +83,7 @@ import static java.util.concurrent.TimeUnit.NANOSECONDS; public final class FSRecordsImpl { private static final Logger LOG = Logger.getInstance(FSRecordsImpl.class); + //@formatter:off static final boolean USE_CONTENT_HASHES = getBooleanProperty("idea.share.contents", true); static final boolean INLINE_ATTRIBUTES = getBooleanProperty("idea.inline.vfs.attributes", true); @@ -92,11 +93,12 @@ public final class FSRecordsImpl { static final boolean USE_SMALL_ATTR_TABLE = getBooleanProperty("idea.use.small.attr.table.for.vfs", true); static final boolean USE_FAST_NAMES_IMPLEMENTATION = getBooleanProperty("vfs.use-fast-names-storage", false); - public static final boolean USE_STREAMLINED_ATTRIBUTES_IMPLEMENTATION = - getBooleanProperty("vfs.use-streamlined-attributes-storage", true); - public static final boolean USE_RAW_ACCESS_TO_READ_CHILDREN = getBooleanProperty("vfs.use-raw-access-to-read-children", false); + public static final boolean USE_STREAMLINED_ATTRIBUTES_IMPLEMENTATION = getBooleanProperty("vfs.use-streamlined-attributes-storage", true); + public static final boolean USE_RAW_ACCESS_TO_READ_CHILDREN = getBooleanProperty("vfs.use-raw-access-to-read-children", true); private static final FileAttribute SYMLINK_TARGET_ATTRIBUTE = new FileAttribute("FsRecords.SYMLINK_TARGET"); + //@formatter:on + /** * Default VFS error handler: marks VFS as corrupted, schedules rebuild on next app startup, and rethrows