RE: [SMARTY-DEV] Once again, multiple plugin directories feature.

From: Date: Wed, 19 Jun 2002 05:52:19 +0000
Subject: RE: [SMARTY-DEV] Once again, multiple plugin directories feature.
References: 1  Groups: php.smarty.dev 
Request: Send a blank email to php-smarty-dev+get-162@lists.php.net to get a copy of this message
Monte Ohrt wrote: > to bottom until it finds what it is looking for. But the plugins that > happen on startup, should they traverse all the dirs too? Hmm. That's a tough one. There could be a performance hit, depending on the number of plugins in the other directories and the number of directories. If the number were small, I don't think it would be a problem. There shouldn't be a performance hit for those users who only have the one plugin directory (I don't think the array traversal overhead is that bad). For me, I'd probably have just one extra directory per project, with maybe ten or so plugins in it. The convenience of having Smarty grab my plugins on startup would outweigh the performance hit in that situation. Besides, I have a feeling that the performance differences we're talking about here are really small, unless you had a hundred plugins in one directory. It's hard to say without some benchmarks. Gary

« previous php.smarty.dev (#162) next »