Do you know where your variables are? | |
PerlMonks |
comment on |
( [id://3333]=superdoc: print w/replies, xml ) | Need Help?? |
Hrm. That's an interesting hypothesis. Essentially you are saying that the overhead of calling perl and the opendir library is less than the overhead of ls+sort for a large number of files. I'm not sure I'm buying that. I'm not sure how to test the memory usage on it though. Give me a day or two and I might just benchmark the memory usage between the two techniques. You could be right, but my gut says no. The inode table is pretty efficient at this kind of thing.
-- I used to drive a Heisenbergmobile, but every time I looked at the speedometer, I got lost. In reply to Re^3: Managing a directory with millions of files
by KurtSchwind
|
|