Re: [SMARTY] please help!
| From: | messju mohr | Date: | Sun, 20 Apr 2003 16:43:43 +0000 |
| Subject: | Re: [SMARTY] please help! | ||
| References: | 1 2 3 | Groups: | php.smarty.general |
| Request: | Send a blank email to php-smarty-general+get-9354@lists.php.net to get a copy of this message | ||
On Mon, Apr 21, 2003 at 03:11:36AM +1200, Eaden McKee wrote:
> messju mohr wrote:
>
> >On Sun, Apr 20, 2003 at 04:57:27PM +0100, Rasmus Schultz wrote:
> >
> >
> >>recreating the folder worked - I switched use_sub_dirs to false, the
> >>templates_c folder contents look much neater now ... why is that even
> >>an option? or rather, why is use_sub_dirs set to try by default?
> >>
> >>
> >
> >most unix-filesystems tend to get slower on directories with a lot of
> >files in it. it is better (performance-wise) to have a deeper
> >directory-structure with less files per directory.
> >
> >
> >
> Know what the threshhold is?
> i.e. is subdirs faster with X number of templates or faster with any
> number of templates?
no, i never measured this. i think it depends on a lot of factors so
everybody has to see for himself.
i mostly use $use_sub_dirs=false, when i don't have "a lot of"
templates for a project. that's it. :)
i think the value of $use_sub_dirs is more important regarding the
cache-directory than regarding templates_c. you are likely to get a
lot more files inside cache than inside templates_c when you use
$caching=true. but as i said: i never measured this.
> also, why do the names start with %% ?
to avoid naming conflicts with the compile_id in the directory-name.
> Eaden
>
>
>
> --
> Smarty General Mailing List (http://smarty.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php