Skip to content

Opengrep version v1.11.5 is taking a huge performance hit when it comes to excluding directories #528

@somakdutta

Description

@somakdutta

Open grep Version : v1.11.5

When scanning a directory which has massive number of files , deeply nested, which needs to be excluded is taking a far longer time than expected .

Eg
a single repo with a simple Helloworld.kt file, open grep takes ~2mins to complete scanning.

You can reproduce the same with the script attached.( it takes 2mins for a simple 5line file scan)

Please help. Happy to hear suggestions to improve this further

Please note this is important : for many maven pipelines, CI devs prefer to retain .m2 directory within the workspace and use --exclude to exclude the same from opengrep.

benchmark.sh

Regards,
Somak

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