xiongxu / s3fs

Automatically exported from code.google.com/p/s3fs
GNU General Public License v2.0
0 stars 0 forks source link

s3fs_readdir() ignores stat cache #156

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
While working to further improve the performance of s3fs, I noticed that 
s3fs_readdir() is not checking the file stat cache. On a directory with a large 
number of files, this is a huge performance hit.

$ # r310 s3fs_readdir() - 3000 files, stat cache empty
$ time ls
  real    1m2.615s

$ # r310 s3fs_readdir() - 3000 files, stat cache populated
$ time ls
  real    1m11.437s

$ # patched r310 s3fs_readdir() - 3000 files, stat cache empty
$ time ls
  real    1m16.350s

$ # patched r310 s3fs_readdir() - 3000 files, stat cache populated
$ time ls
  real    0m4.084s

Original issue reported on code.google.com by ben.lema...@gmail.com on 10 Feb 2011 at 11:41

Attachments:

GoogleCodeExporter commented 9 years ago
This issue was closed by revision r312.

Original comment by dmoore4...@gmail.com on 11 Feb 2011 at 3:52