Skip to content

bisync: use trie internally to reduce footprintΒ #5686

Open

Description

@ivandeex

Synopsis

TODO
See πŸ‘ and ⏬

Prior discussions

Mentioned at #5587 (comment) and...

cjnaz/rclonesync-V2#59

One rclonesync user had about 2M files and ran out of memory. I optimized rclonesync to get it down to two in-memory file listings at any time...

#5164 (comment) (ivandeex)

Listings keep a lot of self-recursive path strings:
[/movies/]alpha, [movies/]bravo, [movies/][zeta/]hello, [movies/][zeta/]world.
This gives a good possibility for compression using trie (using by-path segmentation like above or by-character).

In short, I want to make something like a modified dghubble/trie (not this one precisely but something similar - searching github didn't return anything that'd satisfy all my requirements),
with 3 fast methods: add path, map path -> int32, int32 -> path (delete and modify operations are not needed).
I'd fill it up when a prior listing is parsed or new one generated. Delta engine and queue operations will pass the trie as a shared per-session object and use int32 instead of file names.

This is another postponed item. I'd rather start from thousands, then proceed to zillions.

I understand that rclone deals with the file system recursively by directory rather than the whole tree?

Depends on backend features. --fast-list enables whole tree at least in Google Drive.
bisync just uses internal walk API leaving optimizations to lower level.

How to use GitHub

  • Please use the πŸ‘ reaction to show that you are affected by the same issue.
  • Please don't comment if you have no relevant information to add. It's just extra noise for everyone subscribed to this issue.
  • Subscribe to receive notifications on status change and new comments.

Activity

  1. self-assigned this
    on Oct 8, 2021
  2. added this to the Soon milestone on Oct 8, 2021
  3. ivandeex commented on Oct 10, 2021

    @ivandeex
    MemberAuthor

    The trie structure should support optional case-insensitive operation.

  4. modified the milestones: Soon, Help Wanted on Sep 5, 2023
  5. moved this to To do in bisyncon Aug 20, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Type

No type

Projects

  • Status
    To do

Relationships

None yet

Development

No branches or pull requests

Issue actions