Smarty Forum Index Smarty
WARNING: All discussion is moving to https://reddit.com/r/smarty, please go there! This forum will be closing soon.

Smarty Do not use PHP extension ?

 
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    Smarty Forum Index -> Article Discussions
View previous topic :: View next topic  
Author Message
skycyclone
Smarty Rookie


Joined: 18 Dec 2009
Posts: 5

PostPosted: Wed Jan 11, 2012 4:20 am    Post subject: Smarty Do not use PHP extension ? Reply with quote

Original:
http://phpe.net/2010/08/php-template/



Quote:
我们可以从以下几点可以看出:第一,PHP最为强大的是其扩展库。模板原本完全可以用扩展库来解决的,但PHP官方没有这么做。也许,PHP官方,用扩展库,实现了数据库链接池,从而失去了一个挣钱的机会,从而后悔,这也只是一种猜测。

官方不做,不代表民间无人做,目前,最快的模板引擎:Blitz 模板引擎是一个 PHP 扩展,号称是当前最快的模板引擎。这就是说,它的低层是用C++写成的PHP扩展,而不是PHP源码。具休大家可以参考其网站:

http://alexeyrybak.com/blitz/blitz_en.html

当然,这是目前唯一发现的一个,其它的均是PHP源码的,不管谁,均说它的速度快,但,有些引擎是不需要测的,一看源码就不想用,100K不到的源码,一堆正则表达式,没有明确提供的模板语言控制结构,函数,过滤器,还说速度快,再愉也没什么大用,更何况,正则越多,性能越低下。不知开发者是如何测试的。







Google Translation:

Quote:
We can see from the following points: First, PHP is the most powerful extensions. The original template can be resolved with the extension, but the official did not do PHP.

Officials do not do, no do not represent people, at present, the fastest template engines: Blitz template engine is a PHP extension, known as the current fastest template engine. That is, it is low-level PHP extensions written in C, not PHP code. We can refer to a break on their website:

http://alexeyrybak.com/blitz/blitz_en.html

Of course, this is the only one found, others are PHP source code, no matter who, were it faster, but some engines are not measured, a look at source do not want to use, 100K less than the source, a bunch of regular expressions, do not explicitly provide template language control structures, functions, filters, and said speed, and then have nothing Dayong Yu, not to mention, is the more the more the performance low. I do not know how the test developer.
[/quote]
Back to top
View user's profile Send private message
Display posts from previous:   
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    Smarty Forum Index -> Article Discussions All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group
Protected by Anti-Spam ACP