Status: New
Owner: ----
Labels: Type-Defect Priority-Medium
New issue 409 by
jar...@headfirst.co.nz: slow reading of files even when
cached with getimagesize() in php
http://code.google.com/p/s3fs/issues/detail?id=409
I'm using s3fs as the file system mount for a website that uses a WYSIWYG
editor with the IMCE browser plugin.
The browser is very slow at reading the images mainly due to it needing to
call getimagesize() on each file to retrieve the width/height etc.
To eliminate all other factors I created a simple script that reads a
directory in the S3 bucket and runs getimagesize() on all of them.
The directory has 1042 files and the script takes just over 1 minute to run
initially (as it's creating the tmp images locally i assume) then about 20
seconds there after.
If I run the script pointing at the tmp folder directly it's lightning fast
which is how I would have expected it to run once it was all images had
been downloaded locally and cached when pointing at the mount.
Any advice on this would be great.
I'm using the following to mount:
sudo /usr/bin/s3fs bucket_name /mnt/bucket_name
-oallow_other,default_acl=public-read-write,uid=33,gid=33,use_cache="/tmp/s3fs",max_stat_cache_size="100000"
(uid/gid 33 = www-data)
Cheers,
Jarrod.
--
You received this message because this project is configured to send all
issue notifications to this address.
You may adjust your notification preferences at:
https://code.google.com/hosting/settings