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

File list creation taking too long. #23

Open
rohittp0 opened this issue Oct 11, 2021 · 1 comment
Open

File list creation taking too long. #23

rohittp0 opened this issue Oct 11, 2021 · 1 comment
Labels
enhancement New feature or request hacktoberfest HacktoberFest issues help wanted Extra attention is needed

Comments

@rohittp0
Copy link
Owner

rohittp0 commented Oct 11, 2021

Currently, GramUp is using glob to list the files present in the backup folder. This is taking quite a long time. It would be much after if it is implemented using some other technique. One possible solution is to use C, this would make the process incredibly fast but would be quite a challenge to code. In my opinion, the best method would be to do it in python itself but optimize it by not using regex ( unlike glob ) to do the searching.

This is how we are currently doing it:

for path in Path(root).rglob('*') :

A simple list dir can't be used as we need to get all files recursively, something in the line of os.walk might be appropriate.

This issue is part of HacktoberFest.

@rohittp0 rohittp0 added enhancement New feature or request help wanted Extra attention is needed hacktoberfest HacktoberFest issues labels Oct 11, 2021
@github-actions
Copy link

Thankyou for opening the issue. It will be handled ASAP !

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request hacktoberfest HacktoberFest issues help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

1 participant