Syntactic Confectionery Delight | |
PerlMonks |
Re^2: using Linux getdents syscallby glasswalk3r (Friar) |
on Nov 24, 2015 at 12:10 UTC ( [id://1148494]=note: print w/replies, xml ) | Need Help?? |
I don't care about portability or be POSIX conform... I need to erase lots of files the faster (and with low overhead) as possible in Linux. readdir works fine, but when the directory starts having thousands of files performance starts slowing down. It just occurred to me right now that I could check if readdir does a stat system call in each file inside the directory... that would explain why Perl code to clean the directory is slower. But wouldn't help me solve this issue anyway.
Alceu Rodrigues de Freitas Junior --------------------------------- "You have enemies? Good. That means you've stood up for something, sometime in your life." - Sir Winston Churchill
In Section
Seekers of Perl Wisdom
|
|