Page 2 of 2
Posted: Sat Apr 22, 2006 10:58 pm
by John Cartwright
Interesting, but inconclusive, I am very interested to see if heavy featured template files stand up as well as these initial tests. If they do, well played sir.
Will be dipping my fingers in this heavily tommorow as well, although I may wait if your actively modifying features tommorow

Posted: Sun Apr 23, 2006 12:39 am
by AKA Panama Jack
Well, here is another speed test for compiling.
In this test the main.tpl is a 71k template file that is fairly complex. It takes Smarty 0.8 seconds and Template Lite 0.2 seconds to compile the same file. Template Lite outputs a slightly smaller compiled file. Smarty outputs a 93k compiled template while Template Lite outputs a 90k compiled template.
Posted: Sun Apr 23, 2006 1:00 am
by John Cartwright
What features are you using? Multidimensional looping? Conditionals?
Keep the great results coming

Posted: Sun Apr 23, 2006 1:20 am
by RobertGonzalez
This app is awesome. The directory problem I was having is that the owner of the compiled and cached folders needs to be 'apache' instead of 'nobody'. Now it works like a charm. I have it set to run through a few tests, some arrays, some conditionals and the like and it is spitting the compiled template out in 0.0029 seconds. I am very pleased. Well done Panama Jack. I think I found my template engine

.
Posted: Sun Apr 23, 2006 2:42 pm
by AKA Panama Jack
If you are interested I have just released the 1.80 version of Template Lite on Sourceforge.
Posted: Sun Apr 23, 2006 3:05 pm
by matthijs
I'll have a look at templateLite as well. If Everah is so happy it must be worthwhile checking out

Posted: Sun Apr 23, 2006 4:26 pm
by John Cartwright
Thanks for the update AKA Panama Jack
Posted: Mon Apr 24, 2006 12:19 am
by RobertGonzalez
Downloaded 1.80 and uploaded it. It is working great. One question... was something changed in the parsing of the templates? I noticed the tests that were returning times of about 0.0029 seconds in 1.70 are now returning times of 0.0035 seconds. This is not a major decrease in performance. I was just wondering.
Thanks again. I am so liking this app. On a side note, I heard phpBB is going to be rolling out an instance of Smarty with phpBB 3 (Olympus) as a replacement for their current template parser. Does anyone know if they have given any consideration to Template Lite?
Posted: Mon Apr 24, 2006 2:32 am
by AKA Panama Jack
Thanks

It has been fun this past month trying to get Template Lite as compatible as possible with Smarty while keeping it small and fast.
There may be a little extra slowdown due to the changes I had to make to the debug code. If I could leave out the debug code it would almost be a straight include of the pre-compiled template.
Now if you are talking about the compile time for compiling a file the very first time that is because of the new _get_plugin_dir() function that can scan through a list of directories looking for a specified plugin. This method is a little slower than the old method that only knew about one directory to look into.
I had to add multiple plugin directory support to be compatible with Smarty. Some commercial applications that use smarty require that ability.
There were some code changes made to variable parsing that may be a tad slower due to the added code checks.
Posted: Mon Apr 24, 2006 2:36 am
by AKA Panama Jack
Everah wrote:On a side note, I heard phpBB is going to be rolling out an instance of Smarty with phpBB 3 (Olympus) as a replacement for their current template parser. Does anyone know if they have given any consideration to Template Lite?
It would be a nice feather in my hat if that happened.
