The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
Template Compressor
PROBLEM: Pages are produced with huge amounts of white space, comments, etc., bloating the HTML, load time, and bandwidth.
SOLUTION: Compress it. Remove whitespace, etc. PROBLEM: This takes CPU time. SOLUTION: Precompress the templates. That is, store two copies of each template. A "master", which is showed when you edit, and a "compressed", which is generated each time you save a new template (or edit one), without whitespace and comments. The compressed one is actually used. Anyone up to the challenge? |
#2
|
|||
|
|||
|
#3
|
||||
|
||||
the same template content is stored in two columns, not sure why, one is used in eval() I think, you could compress that one I think
|
#4
|
|||
|
|||
With compression -
Powered by vBulletin Version 3.5.0 Beta 3 Copyright ©2000 - 2005, Jelsoft Enterprises Ltd. [Output: 25.91 Kb. compressed to 24.95 Kb. by saving 0.96 Kb. (3.69%)] Page generated in 0.09913 seconds with 8 queries [Server Loads: average: 0.50, 0.81, 0.85 0.50 : 0.81] Without compression - Powered by vBulletin Version 3.5.0 Beta 3 Copyright ©2000 - 2005, Jelsoft Enterprises Ltd. Page generated in 0.09982 seconds with 8 queries [Server Loads: average: 0.61, 0.74, 0.81 0.61 : 0.74] |
#5
|
|||
|
|||
Biker, I saw that plug in, but it compresses each page as it is served. As I said, this could be further optimized by just compressing the template. See PROBLE #2.
(I have in mind some additional compressions, that would take more time, and hence are best done only once). |
#6
|
|||
|
|||
Quote:
|
#7
|
||||
|
||||
Quote:
PHP obviously doesn't understand <if> ... <else />, <phrase>. So this has to be parsed into native PHP Calls, and if this would be done for every Template upon every Page Call it would be a mjaor performance hit. Compressing the Templates Offline is a good idea, unfortunately there a a bunch of Problems - JavaScript for example. |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|