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