Problems? Is your data what you think it is? | |
PerlMonks |
Re^2: Automatically distributing and finding files in subdirectoriesby shmem (Chancellor) |
on Jul 18, 2006 at 07:42 UTC ( [id://561948]=note: print w/replies, xml ) | Need Help?? |
The big problem with linux and directory listing is the expensive lstat call done by ls. I had a case where listing took minutes, the directory contained somewhat over 300.000 files.
The cheapest way to get at the files at the system level is find $dir which doesn't call lstat. --shmem _($_=" "x(1<<5)."?\n".q·/)Oo. G°\ / /\_¯/(q / ---------------------------- \__(m.====·.(_("always off the crowd"))."· ");sub _{s./.($e="'Itrs `mnsgdq Gdbj O`qkdq")=~y/"-y/#-z/;$e.e && print}
In Section
Seekers of Perl Wisdom
|
|