I am new to Perl.
I want to recursively search a `pdf` file in a large directory tree containing multiple sub-folders,sub-sub folders and a huge amount of files.
I am using `File::Find::Rule` to achieve this. But, the performance impact is huge. 
The script is taking a huge amount of time to search.

Snippet from my Perl script:

```
@folders = File::Find::Rule -> file -> name('*.[pP][dD][fF]') -> in($folderPath);

```

Is there any other way to achieve this without impacting performance?

Any help will be highly appreciated.