Skip to content

File list creation taking too long. #23

@rohittp0

Description

@rohittp0

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions