[sldev] Reformatting Textures for the cache

Jason Giglio gigstaggart at gmail.com
Thu Mar 22 14:24:43 PDT 2007


Morse Dillon wrote:
> Someone made a comment earlier that perhaps NTFS handles piles of small 
> files well, in which case the many-files cache would still perform 
> acceptably.

I can vouch for ext2/3.

$ls | wc -l
74685

$ time touch test

real    0m0.001s
user    0m0.000s
sys     0m0.001s
$ time ls test
test

real    0m0.002s
user    0m0.000s
sys     0m0.001s
$ time rm test

real    0m0.003s
user    0m0.000s
sys     0m0.003s


In a directory with 74k+ files there is very little difference in any 
file system tasks.  You get similar times to these in an empty directory.

"The filesystem is faster than you think." is probably good advice for 
most programmers these days that jump to some overly complex solution 
right away.

-Jason


More information about the SLDev mailing list