Re: [SMARTY] A proposal - files instead of dirs...
| From: | Michal Prinke | Date: | Sat, 11 May 2002 01:10:02 +0000 |
| Subject: | Re: [SMARTY] A proposal - files instead of dirs... | ||
| References: | 1 2 | Groups: | php.smarty.general |
| Request: | Send a blank email to php-smarty-general+get-4162@lists.php.net to get a copy of this message | ||
Monte Ohrt wrote:
>
> The original reason behind having subdirectories was to keep the
> filesystem as quick as possible. Let's say you have 30,000 files in the
> template_c directory. The OS would be quicker at retrieving a file from
> a subdirectory of 100 files than it would retrieving it from one
> directory with 30,000 files.
> If you want to, you can create your own template resource which does
> exactly the same thing as the default one, but doesn't use subdirectories.
Okay, but I think it can be a good idea to embed this functionality in
Smarty itself - just to let people run it and play with it.
A slow script is better that not working because of the safe mode!