Repository navigation
reduce background file operations for projects on remote filesystems - #18059
Conversation
The two new Messages-based constants (gpuSettingChanged*, reduceRemoteFilesystemOperationsText) were added to the _en properties files but not _fr. GWT requires every key of a Messages interface to resolve in every supported locale, so generating the _fr variant failed the GWT compile on all platforms.
🍎 macOS Desktop E2E · ARM64✅ All tests passed!
📥 Download Playwright report⬇️ playwright-report.zip — extract and open
2 shards · macos-26 ARM64 · commit |
🪟 Windows Desktop E2E · Server 2025 x64✅ All tests passed!
📥 Download Playwright report⬇️ playwright-report.zip — extract and open
2 shards · Windows Server 2025 x64 · commit |
…stem-optimizations
Code review findingsActionable items from an automated multi-agent review (code quality, error handling, comments, test coverage). The detection logic, magic-number values, GPU-command relocation, and the per-project local-prefs read/write wiring were all verified correct and are not listed here. Important
Medium (error handling)
Suggestions
|
- cache the resolved reduce-remote-filesystem decision so checkForExternalEdit no longer reads/parses the local prefs file and probes the mount per poll - force a session restart when the global preference is toggled, matching the per-project control - log local-prefs parse failures and unexpected statfs errnos - extract pure resolveReduceRemoteFilesystemOperations / parseReduceRemoteFilesystemOperationsOverride helpers and add unit tests - rename SMB2/CIFS magic numbers to the canonical *_SUPER_MAGIC names and clarify the FUSE over-match and isRemotePath docs Addresses #10417.
Summary
Adds an option to reduce background file operations for projects located on network or remote filesystems, improving responsiveness on slow drives -- a long-standing pain point (see #10417).
When reduction is active for a project, RStudio:
check_for_external_editstat checks.Configuration
"local": truein the prefs schema), stored per-user under.Rproj.userrather than in the shared.Rprojfile -- so it is not committed to version control, since whether a project lives on a slow/remote mount is a per-user, per-machine fact.The resolver precedence is: per-project Yes/No wins; otherwise the global preference, which in automatic mode applies only when the project is detected to live on a remote filesystem. Because the per-project override is consulted during project startup -- before the project preference layer is initialized -- the backend reads it directly from the local prefs file (
.Rproj.user/<ctx>/rstudio-prefs.json).Detection
core::system::isRemotePath():PathIsNetworkPathW+GetDriveTypeW/DRIVE_REMOTEstatfs+MNT_LOCALstatfsf_typemagic numbers (NFS / CIFS / SMB / FUSE / ...)The detection result is cached per project, since
statfs()on a hung remote mount can block.A one-time informational console message (via R
message()) is shown when reduction is active for a project.Also included (separable)
This branch also relocates the desktop "GPU exclusion list" / "GPU driver bug workarounds" settings from the General > Advanced preferences pane to Command Palette commands (
toggleGpuExclusionList,toggleGpuDriverBugWorkarounds), to free space in the pane. Committed alongside the feature here; can be split out if preferred.Verification
ant javacis clean.isRemotePath) and Linux (statfs) branches have not been compiled locally and need a CI/Windows/Linux build.Addresses #10417.