Skip to content

Eagerly exclude un-match-able directories #83

Description

@nik9000

I tried using varar this morning for a rust project. I have some oath in my README and in a docs directory so I pointed varar at the root of my repo. Varar takes 30 seconds to start because my target directory is fairly big which is pretty common in rust and the walk code in the rust driver scans every file and then filters them down. This adds some preliminary filtering.

I haven't confirmed if any of the other drivers do this. Claude thinks js and java don't have this problem because they scan differently.

For what it's worth, the rust folks have spent a ton of time making scanning files super fast for patterns with the .gitignore syntax. I didn't look into how they do that, just hacked together something that worked for me.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions