Giter Club home page Giter Club logo

Comments (4)

markuskreusch avatar markuskreusch commented on August 19, 2024

This issue has come up due to #38. To fix #38 an approach to load all entries at once by repeatedly invoking the google api has been implemented. This issue improves performance by loading additional entries only if required (scrolling to the bottom in the UI or similar user interaction).

from cryptomator-ios.

tobihagemann avatar tobihagemann commented on August 19, 2024

I've look into the APIs and it looks like that this also applies to OneDrive. Apparently, the default page size is limited to 200.

from cryptomator-ios.

tobihagemann avatar tobihagemann commented on August 19, 2024

There is a HUGE PROBLEM though. I don't know how to implement this properly. Encrypted and unencrypted files are obviously not alphabetically sorted in the same way. How should we support "infinite scrolling" and keep the sorting intact? πŸ˜•

Edit: Could be solved by:

  1. Loading the complete contents of directory first (recursively through all pages)
  2. Decrypt filenames
  3. Sort filenames (this can be changed in the future, we don't want to support "alphabetically sorted" only)
  4. Present contents of directory to user, doesn't hurt to use pagination, even though the whole content has already been loaded from the cloud

There is just no acceptable "server-side" solution, everything has to be done client-side. So there is no performance gain (or more precisely, you can't save bandwidth).

from cryptomator-ios.

tobihagemann avatar tobihagemann commented on August 19, 2024

Fixed for Google Drive and OneDrive and implemented in the way as suggested (client-side, directory listing completely loaded before showing any results to the user). Wasn't necessary for iCloud Drive, Dropbox, and WebDAV.

from cryptomator-ios.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. πŸ“ŠπŸ“ˆπŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.