RE: [SMARTY] Plugins dir
| From: | Marshall Sorenson | Date: | Thu, 09 Oct 2003 12:01:24 +0000 |
| Subject: | RE: [SMARTY] Plugins dir | ||
| References: | 1 | Groups: | php.smarty.general |
| Request: | Send a blank email to php-smarty-general+get-10321@lists.php.net to get a copy of this message | ||
> -----Original Message-----
> From: messju mohr [mailto:messju@lammfellpuschen.de]
>
> On Thu, Oct 09, 2003 at 11:28:43AM +0200, Armand Turpel wrote:
> > Hi,
> > Are multiple plugin directories with many plugins a performance
> killer? Or,
> > from which number of plugins this is becoming a problem? 100,
> 200, 500...?
>
> many plugins in one directory depend on how good your operating-system
> handles directories with many files in it. i don't know any
> threshhold-values here if anybody else does: please enlighten me :)
i'm guessing there is no limit except for running out of file descriptors
>
> many plugin directories cost performance when the plugins are at the
> end of the list. consider plugins_dir = array('a','b','c'):
> plugins
> in 'a' are found on the first file_exists() but plugins in 'c' need 3
> file_exists()-tests.
i would say if you are freaky about performance and you have less than a few
hundred plugins (that is a lot!), keep them all in the same directory
>
> i tested recently to put the full paths to the plugins-files into the
> compiled template (as additional parameters to core_load_plugins()).
> this saves traversal of the plugins_dir-path ones the template is
> compiled. but it has one drawback: the compiled templates are not
> portable across installations. i know there a people who compile their
> templates on one machine and upload the compiled templates to the
> production-system afterwards. i think they do because they don't want
> to give the production-system write-permissions to templates_c for
> security reasons. i don't think sacrificing this "feature"
> (portability of the templates) is worth the very little speedup you
> get on deep plugins_dir-paths. what do others here think?
>
> (sorry that i had more questions than answers :)
>
> greetings
> messju
>
> > Thanks,
> > atu
> >
> > --
> > Smarty General Mailing List (http://smarty.php.net/)
> > To unsubscribe, visit: http://www.php.net/unsub.php
>
> --
> Smarty General Mailing List (http://smarty.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>