[Typo3-dev] thougts of TYPO3 imagefunction and short MD5 Hash

Karsten Dambekalns k.dambekalns at fishfarm.de
Wed Jul 21 13:06:19 CEST 2004


Hi,

On 2004-07-21, Kasper Skårhøj <kasper2004 at typo3.com> wrote:
> I also find that the Zend test does not take into account what the speed
> is if there are 10000 images stored in the table compared to 10000 files
> in a folder; which one situation is served faster? (Actually 10000 files
> in folders ARE slow to access/write!).

True, with a very large number speed in file system decreases. This
can be addressed outside of TYPO3 by using a filesystem better suited
to a large number of files. Or inside TYPO3 by implementing a hashed
directory structure scattering files in, say, 16 sub folder named 0-F.

> At this point we haven't even discussed the additional overhead of
> having '... src="serve_image.php?image=...."'; that will load PHP more,
> it will be more "cryptic" HTML code (taking more space probably) and
> generally raise the chance of more support questions and bugs to fix in
> the system.

I think most people agree on 'keep binary data in the
filesystem'. Right?

Karsten




More information about the TYPO3-dev mailing list