Don't ask to ask, just ask | |
PerlMonks |
Re^2: using Linux getdents syscallby glasswalk3r (Friar) |
on Dec 03, 2015 at 23:55 UTC ( [id://1149348]=note: print w/replies, xml ) | Need Help?? |
You're right oiskuu: I tested the code in a different situation and didn't get a better performance compared to other solutions (rm -f * was the better option if all files were to be removed). In the other hand, it did showed faster performance than using readdir(). I believed if I retrieve all files names at once before trying to apply any checking or removing them would be faster, but I still need to benchmark it This is going a bit outside of scope of Perl, but I guess that after all the only way to detect this kind of issue with the filesystem is having a baseline to compare with.
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
|
|