Is there a faster alternative to Perl's stat?

performance, perl, stat

Solution

When you call `stat` you're querying the filesystem and will be limited by its performance. For large numbers of files this will be slow; it's not really a Perl issue.

Problem

I'm traversing an entire partition, `stat()`'ing each file and then checking the returned values for mtime, size and uid against hashed values. `stat()` however is far too slow in Perl and I'm wondering if there's any quicker alternatives I may be overlooking.

Original source