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

Performance / Speed improvement #84

Open
AxelPetermann opened this issue Nov 6, 2023 · 1 comment
Open

Performance / Speed improvement #84

AxelPetermann opened this issue Nov 6, 2023 · 1 comment

Comments

@AxelPetermann
Copy link

AxelPetermann commented Nov 6, 2023

I've got the impression, that restic-browser is quite slow in opening folders and sub-folders. Not sure how kopia or npbackup are doing this, but they are much faster.

Can something be done on the performance side?

@emuell
Copy link
Owner

emuell commented Nov 7, 2023

Not sure what kopia does (does it use restic at all?), but npbackup seems to use rustic as an external binary, just like Restic-Browser, so they should work similarly.

Restic-Browser basically does a restic SNAPSHOT ls --json PATH to get the contents of the current folder in the selected snapshot. Most of the time seems to be spent warming up, reading general repository info, so loading the whole snapshot list isntead of just contents in a given path may speed things up after the initial load. However, the initial load will be longer. Perhaps that's what npbackup does.

I personally hope, but haven't tested, that using the rustic library instead of the restic binary may speed things up by reducing the "warm-up" phase. Loading the entire contents of the snapshot in one go might also be an option, but then all the contents would have to be shown/displayed as they are fetched, which can be tricky to implement.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants