View Single Post
Posts: 204 | Thanked: 15 times | Joined on Jan 2007 @ Berlin, Germany
#6
Originally Posted by TA-t3 View Post
...
find /media/mmc1 | wc -l
shows 1840 files and directories.
Then open the card door, close it (to re-mount the card, which will flush any memory buffers that would artificially speed up the process). Then measure how long it takes to read every file entry in every directory:
time ls -lR /media/mmc1 > /dev/null
real 0m 2.71s
user 0m 0.30s
sys om 1.96s

Quite fast..
gammer, you could try the same excersize with your particular card. That would give you an idea of how fast it could be done.
Of course, the file manager does much more - if there are pictures it'll thumbnail them and so on. Which means that it'll have to read at least the beginning of every file, not just file entries, just to classify them.
For 12667 files and directories on my 4GB transcend SD I get
real 0m 20.89s
user 0m 1.12s
sys 0m 11.68s
This is acceptable, but I think a filemanager would not go as deep as possible in every situation. Time until subdirectories become "available" in the built-in filemgr obviously depends on the contents of those subdirs. If I do your experiment with the aforementioned pictures folder then I get for 1457 files and directories
real 0m 1.06s
user 0m 0.18s
sys 0m 0.54s
But opening it with the filemgr is really annoying, with and without thumbnail previews! If I could switch off the more or less useless look-ahead-feature (or whatever it is) then I could save a lot of time each day.

Last edited by gammer; 2007-11-29 at 19:23.