vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.5 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=113)
-   -   HELLCAT's Realtime Page Compressor (https://vborg.vbsupport.ru/showthread.php?t=106333)

Hellcat 02-05-2006 11:48 AM

vBulletin has a build in option for using gzip compression, no need for a gzip.php or such.

Just go to your AdminCP -> vBulletin Settings and enable GZIP.
This will (ZIP) compress the HTML page, then send it to the browser that will uncompress and display the page.
This way you can save quite some bandwidth on your server, indeed.

This adds some more loadon the server (depending on compression level) and not all browsers support it (in that case the compression in skipped).

Orcun 02-05-2006 03:23 PM

Hi Hellcat,

I think it does not compress the comments that are included in themes.
For example,

I have a comment like that,

<!-- [START HACK='vB Pager'

// vB Phrases

and I can still see it in the code. Deleting those lines shall provide better compression. What u say ?

Is there a way to decide what kind of comments should be removed ? To a way to change compression level ?

I cant see it in the AdminCP options. Just 3 there.

Hellcat 02-05-2006 07:16 PM

To make it compatibel with the AnyMedia BBCode the compressor ignores (leaves) HTML comments that contain a square bracket "[".

Removing those from comments will also get that comment removed from the final output.

(Didn't find a better yet to determine if the comment is AnyMedia)

The "//" comments can (and should) be removed as well, yes.
I'll put that one into the next update :)

Codeman05 02-05-2006 09:40 PM

well I guess from a bandwidth perspective this is potentially worthwhile, but not from a page load time standpoint....in my case anyway.

I am showing a 10-15% compression. However, my page load times go from ~.10-.14s with this disabled, and goes to ~.21-.25s with this hack enabled.

Did anyone else notice this? Or is getting improved performance along with the compression?

Good hack in any case, definately not trying to knock that

Zia 02-06-2006 02:33 AM

Quote:

Originally Posted by Hellcat
vBulletin has a build in option for using gzip compression, no need for a gzip.php or such.
Just go to your AdminCP -> vBulletin Settings and enable GZIP.
This will (ZIP) compress the HTML page, then send it to the browser that will uncompress and display the page.
This way you can save quite some bandwidth on your server, indeed.
This adds some more loadon the server (depending on compression level) and not all browsers support it (in that case the compression in skipped).

Yes Sir..i had it enable ..i set the compression level to 1....i read many place that 1 is the best...not 9...

Thanu Sir..i got reply of my curiousness :)

thnakx

[high]* Zia still waiting for agressive compression :D[/high]

GamerJunk.net 02-09-2006 10:08 PM

[page compression: 32.33 k/36.59 k (11.64%)]
Page generated in 0.76232 seconds with 9 queries (2 queries for uncached templates) [Server Loads: 10.27 11.02 : 9.51]
Uncached templates: page (1)
Uncached templates: userfield_textbox (15)

What does that mean? It's on my "page" template for my Extra Info

Hellcat 02-09-2006 10:20 PM

The uncached templates come most likely from another extension, maybe that extra info thingy.

delds 02-09-2006 11:04 PM

Excellent mod/plugin, good work.

itorrents 02-09-2006 11:51 PM

A must have I say :D thanks for all your work.

BigTrucK72 02-10-2006 04:40 PM

Geezus Hellcat... you really rocked this one. Saving anywhere from low to high 30s @ http://forums.xedge.net

Thanks and keep up the good work!


All times are GMT. The time now is 10:12 PM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01725 seconds
  • Memory Usage 1,736KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (2)pagenav_pagelinkrel
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete