Smarty is a chicken rib, smarty is a chicken rib, smarty is a chicken rib! What should I do?

Source: Internet
Author: User
Smarty is a chicken rib, smarty is a chicken rib, smarty is a chicken rib! I played a title party. Sorry. the person who wishes to come in will tell me that you are wrong! -- & Nbsp; do not enable & nbsp; cache & nbsp;. the templates compiled by optical reading are mostly echo outputs, when the performance is improved, there is no array loop. smarty is a chicken rib, smarty is a chicken rib, and smarty is a chicken rib!
I played a title party. Sorry. the person who wishes to come in will tell me that you are wrong!

-- If cache is not enabled, the templates compiled by optical reading are mostly echo output, which means fewer array loops are required for performance improvement.

-- If it is enabled, the page to be cached is completely static, which is more efficient than it and saves the read time.

-- In addition, we can see that many frameworks do not need to be replaced by templates, which reduces the compilation and replacement processes, if you want to cache, generate html for the output content or save it on the hard disk in other ways,

Therefore, it is a pity that the performance of smarty cannot be used up,


... Waiting for the speaker to speak
------ Solution --------------------
I don't understand what it means.
------ Solution --------------------
Is smarty a chicken rib?
Benevolent and wise
Only useful people know. I don't need it anyway.
As a template engine, the purpose is to reduce the workload during development, or improve development efficiency.
Any template engine
As for the operation efficiency, it must be compromised.


------ Solution --------------------
Ah
Calculate the score
------ Solution --------------------
Used
------ Solution --------------------
Smarty. Used
------ Solution --------------------
How do you control the full static cache refreshing of cache pages? If the page is generated, do not change. what engines are used in the same way?
Is it complicated?
------ Solution --------------------
I don't need smarty, not the template engine.
I have a self-developed "pull" compiled template engine, which is very simple and effective.
It has been used with my toolbox for several years.

------ Solution --------------------

------ Solution --------------------
I have never used smarty, because I used another template when I was using php, and I made it my own.

Two files. the Source Code includes less than 30 kB of comments.
------ Solution --------------------
No, I don't know.
------ Solution --------------------
The template is used to speed up development, and the efficiency at runtime must be compromised.

If code execution is equivalent to product quality, the development time is equivalent to the cost. Obviously, smarty is not the best in quality, but the most cost-effective.
------ Solution --------------------
I picked up the score.
------ Solution --------------------
PHP is the best template.
------ Solution --------------------
Take specific measures according to specific situations. By the way, I have already split the points.
------ Solution --------------------
If you don't think the speed is good, change it and remove some unwanted things, so the speed will come. As for the cache, write it on your own. It is open-source! There is no need for such competition.
------ Solution --------------------
Pull ~~~ Push
------ Solution --------------------
If you don't use it, you can say that people are not good.
------ Solution --------------------
Bangding. Score acquisition and learning

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.