Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Lazy scanning when virtual files are enabled #4464

Closed
marcotrevisan opened this issue Apr 28, 2022 · 3 comments
Closed

Lazy scanning when virtual files are enabled #4464

marcotrevisan opened this issue Apr 28, 2022 · 3 comments
Labels
enhancement enhancement of a already implemented feature/code

Comments

@marcotrevisan
Copy link

It would be great to make it possible for the "virtual files" functionality to work more lazily:

  • First sync: instead of spanning the entire folder hierarchy, limit to the first level or two, then trigger further scans only when the user actually opens the root folders, like other virtual drive clients currently do.
  • Synchronization: as a consequence, only sync the already scanned folders, ignoring changes that are out of that span.
  • There could even be a de-hydration policy like "least recently used" or similar, to keep the synchronization set as small as possible in the long term.

The basic idea behind this is that :

  • the typical user needs to be able to start working on his/her workspace as quickly as possible, without minding about the contents outside those sub-folders.
  • the client should be able to scale reasonably well on big folder hierarchies in order to be competitive (or even viable as a solution). Ideally there should be the same kind of user experience (including responsiveness) when the user has to work on documents in a small share or in a very big one.

Thanks!

@marcotrevisan marcotrevisan added the enhancement enhancement of a already implemented feature/code label Apr 28, 2022
@marcotrevisan marcotrevisan changed the title Lazy syncing when virtual files are enabled Lazy scanning when virtual files are enabled May 4, 2022
@marcotrevisan
Copy link
Author

marcotrevisan commented May 16, 2022

Just for the records... saw this:

https://developer.apple.com/videos/play/wwdc2021/10182/

NSFileProviderReplicatedExtension seems to provide:

  • all of the above;
  • a nice and native implementation of virtual files out of the box;
  • perhaps a reduction of the code needed to implement the NC client on mac, since all of the sync logic is handled by the system.

As a mac user this seems to be one of the best possible approaches right now...

Thanks!

@marcotrevisan
Copy link
Author

#1337 should close this and is in progress now, yay!

@marcotrevisan
Copy link
Author

(closed this because the new macOS implementation basically fulfills this request and I'm using Mac OS)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement enhancement of a already implemented feature/code
Projects
None yet
Development

No branches or pull requests

1 participant