in reply to Re: using syscalls in perl through inline c
in thread using syscalls in perl through inline c

the reason behind using inline c is speed readdir is not fast enough to read millions of files.
  • Comment on Re^2: using syscalls in perl through inline c

Replies are listed 'Best First'.
Re^3: using syscalls in perl through inline c
by stevieb (Canon) on Jan 16, 2017 at 14:41 UTC

    Have you compared the C code to pure Perl code? Most often, it's the I/O of the disk subsystems that are the bottleneck, not the code itself.

    I'm not saying that's absolute in all cases, but it may be prudent to do a one-off test between the two before making any decisions.