feat(fuse): improve FUSE performance and unify mount configuration - #285
Merged
Conversation
…racking - Increased the default inflight_requests from 3 to 10 in configuration files and UI components to allow for more concurrent requests per connection. - Updated the ProviderModal component to reflect the new inflight_requests value. - Enhanced the FUSE layer to support stream tracking by introducing a StreamTracker interface and integrating it into the FUSE server and file handling logic. - Adjusted the downloader and file handling mechanisms to improve performance and resource management during streaming operations.
- Introduced a shared singleflight.Group in the Downloader for deduplicating fetch requests, allowing concurrent fetches for the same chunk range to be collapsed. - Updated CachedFile to utilize the Downloader's fetchGroup, enhancing efficiency by synchronizing sync-path and prefetch-path fetches. - Added a noopFetchGroup for standalone CachedFile instances when no downloader is present.
- Refactored FuseConfig to use "mount" as the section identifier for configuration updates. - Added a new MountConfigSection component to handle both RClone and native FUSE mount configurations. - Updated ConfigurationPage to redirect legacy "rclone" and "fuse" paths to the new "mount" section. - Enhanced type definitions to support unified mount configuration, including mount_type and mount_path. - Adjusted backend handlers to accommodate the new mount configuration structure.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
singleflight.Groupin the Downloader to collapse concurrent fetches for the same chunk range, eliminating redundant downloads from both sync and prefetch pathsMountConfigSectioncomponent, with backend handlers updated to matchStreamTrackerinterface to the FUSE layer for better resource management, increased defaultinflight_requestsfrom 3 to 10, and enhanced downloader performanceTest plan
🤖 Generated with Claude Code