barryvdh / elfinder-flysystem-driver

elFinder driver for Flysystem
183 stars 41 forks source link

`_stat()` performance optimization #2

Closed nao-pon closed 9 years ago

barryvdh commented 9 years ago

Not sure if the meta data is always the same and includes the same information. I'll have to check.

Do you have a specific issue with a driver?

nao-pon commented 9 years ago

I rewritten. I checked copy adapter. It is too heavy, because getTimestamp, getSize, getMimetype call getMetadata and getMetadata call API every time.

barryvdh commented 9 years ago

Ok thanks! (And for your other PR's)

nao-pon commented 9 years ago

Thanks! By the way, I have added cache function to the copy adapter. ( https://github.com/nao-pon/flysystem-copy/commit/4f764f405c7dd02c4874128b97884ee00c467ecc ) :smile:

barryvdh commented 9 years ago

You could also use a Cached Adapter (https://github.com/thephpleague/flysystem-cached-adapter):

http://flysystem.thephpleague.com/upgrade-to-1.0.0/

nao-pon commented 9 years ago

Oh! Thank you! I'll try it!