I don't think it's clear to me yet, is it faster to read things from a file or from memcached? Why?
相关问题
- Faster loop: foreach vs some (performance of jsper
- Why wrapping a function into a lambda potentially
- How to specify memcache server to Rack::Session::M
- Ado.net performance:What does SNIReadSync do?
- Device support warning : Google play 2019
相关文章
- Is there a google API to read cached content? [clo
- DOM penalty of using html attributes
- Which is faster, pointer access or reference acces
- Why is file_get_contents faster than memcache_get?
- Django is sooo slow? errno 32 broken pipe? dcramer
- What file sytems support Java UserDefinedFileAttri
- Transactionally writing files in Node.js
- Understanding the difference between Collection.is
There are quite a few different aspects that might favour one or the other:
I would suggest you look at your use case and do some profiling of both approaches. If you can get away with using the filesystem then I would. Adding in memcached adds in another layer of complexity and potential points of failure (memcached client/server).
For what it's worth the other comments about disk vs memory performance might well be academic as if the filesystem data is being accessed regularly then it'll likely be sitting in OS or disk cache memory anyway.