CodeIgniter Forums
improving cache performance - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: Archived Discussions (https://forum.codeigniter.com/forum-20.html)
+--- Forum: Archived Development & Programming (https://forum.codeigniter.com/forum-23.html)
+--- Thread: improving cache performance (/thread-11618.html)



improving cache performance - El Forum - 09-16-2008

[eluser]gungbao[/eluser]
I need some experts hint:

- take a linux server with extFS (debian etch)
- imagine a really huge cache directory with hundredthousands of md5-hashed cache files

will the average php-file_find be accelerated
when reorganising the cache-dir structure with subdirs e.g. the first 2 chars ode the md5-hash?

cache/aa
cache/ab
cache/ac

... thus there would me minimum php-overhead to find the corresponding subdir and the size of the set of cache files could be dramatically reduced.

But is this necessary on modern file-systems?

Could anyone pls. let me know? I would appreciate so I would save efforts for eventually needless tests.
Greetings to all ignited people Wink
Chris