PDA

View Full Version : Realtime Template Compressor: Reduces page sizes, loads pages faster, saves bandwidth


Pages : 1 [2]

ryuji
01-25-2006, 03:16 AM
hellcat should make a new one since the original writer poof'd long ago, i will try it on my boards later on durring the week

Hellcat
01-25-2006, 03:28 AM
is it supposed to take all the lines away from the source?
It strips all whitespace and linebreaks.
Except in JS and some other blocks.


and the result is: Nope it doesn't work with vb drupal...

works fine for my forums though so installed...

* gamebgs clicks install
What doesn't work?
What are the effects?


hellcat should make a new one since the original writer poof'd long ago, i will try it on my boards later on durring the week
Since the last edit it doesn't even contain one single line of the original code :D
Well, besides the % calculation for the footer stats, but I'm going to change this as well in a way that you can place that stats display wherever you like (or hide it).


[EDIT]
How about something like this:
(this is a real shot, and actually works already, no fake ;))
http://files.area-42.net/060124/pgcmprcpshot.gif

The stats makeup itself is now stored in a template and no longer hard-coded - so you can not only place the thing where ever you like you can also easiely customize it :cool:

klaush
01-25-2006, 07:19 AM
Just to keep informed....

klaush
01-25-2006, 07:21 AM
Hmm.... I think I know what that might cause....
If that's it it would reduce the ratio, but increase compatibility....
* Hellcat starts tweaking :)



Looks fine on a 3.5.2.

Thanks!

The Chief
01-25-2006, 12:36 PM
It doesn't do anything, thats the problem, it doesn't seem to affect it...

Guest210212002
01-25-2006, 02:36 PM
Hmm.... I think I know what that might cause....
If that's it it would reduce the ratio, but increase compatibility....
* Hellcat starts tweaking :)


* Hellcat waits for feedback now :)

That fixed all of the display problems that I was having, and the advanced editor bug.

So far, that seems to be 100% working on 3.5.3. Thank you VERY much for the effort Hellcat, you've made this mod usable again for tons of us. :D

* Guest210212002 cheers

Argh: It breaks the actual player portion of this hack, however (https://vborg.vbsupport.ru/showthread.php?t=106239), but that's the only thing I can find.

This is the code that goes away with the latest:



<object data="http://www.sevenstring.org/forum/players/mp3player.swf?file=http%3A%2F%2Fwww.chrisquigley.c om%2Faudio%2Fmidwinter.mp3&amp;autoPlay=false" type="application/x-shockwave-flash" width="400" height="20" class="player_mozilla">
<param name="play" value="true" />
<param name="wmode" value="opaque" />
<param name="quality" value="high" />
</object>
<!--[if IE]>
<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" width="400" height="20">
<param name="movie" value="http://www.sevenstring.org/forum/players/mp3player.swf?file=http%3A%2F%2Fwww.chrisquigley.c om%2Faudio%2Fmidwinter.mp3&amp;autoPlay=false" />
<param name="play" value="true" />
<param name="wmode" value="opaque" />
<param name="quality" value="high" />
</object>
<![endif]-->

EricaJoy
01-25-2006, 07:05 PM
so do I just replace the code in the XML with Hellcats code for this?

dethfire
01-25-2006, 07:30 PM
great work hellcat, you've fixed the bug and doubled my optimization

Hellcat
01-25-2006, 08:47 PM
so do I just replace the code in the XML with Hellcats code for this?
I'm going to release a product .XML this night of my version that also holds some more features (like AdminCP integration, stats can be fully customized....).

You'll then just to have to import that XML and you're set :)

The Chief
01-25-2006, 09:04 PM
I'm going to release a product .XML this night of my version that also holds some more features (like AdminCP integration, stats can be fully customized....).

You'll then just to have to import that XML and you're set :)

did you try it with vB Drupal, as it doesn't seem to do anything for me...

Megareus Rex
01-25-2006, 09:51 PM
How would I go about changing where this appears? (unlike the microstats one, I actually looked this time >.>

I'd like it under the microstats (which are now under the copyright), but I don't see how to do it.

Smiry Kin's
01-25-2006, 10:23 PM
with 3.5.2

and element skil.

it messes up the DHTML thing.. which is a pain really.. any way to sort this?
anyhelp?

EricaJoy
01-25-2006, 11:00 PM
I'm going to release a product .XML this night of my version that also holds some more features (like AdminCP integration, stats can be fully customized....).

You'll then just to have to import that XML and you're set :)woot! can't wait!

Guest210212002
01-25-2006, 11:16 PM
I'm going to release a product .XML this night of my version that also holds some more features (like AdminCP integration, stats can be fully customized....).

You'll then just to have to import that XML and you're set :)

Sweeeet. :D

If you can make it not break that media code snippet, I will fedex you a puppy!*


*this is a lie

Hellcat
01-25-2006, 11:47 PM
@all:
My version:
https://vborg.vbsupport.ru/showthread.php?t=106333 :cool:

For the "how to customize":
You have the option to use a special HTML tag (<cmpstat />) that will show the stats on the place where you inserted this tag when that option is enabled.
You can further customize the look of it by editing the template.
(more details in the readme :))

@gamebgs:
Hmm, I'll take a look a that Drupal issue.
Drupal is freely available from here, so I can install it for testing, right?

@Chris-777:
I will look at this as well :)

BillP
02-15-2006, 08:24 PM
I installed this hack, and my site is small, but I would think that doing a preg_replace on every page load would be a waste of CPU if your site was heavily loaded.

I think a more important hack or plugin would be to do the following:


Catch and eliminate wasted whitespace on post creation instead of on display
Catch wasted white space in templates on creation instead of on display
Maintenence items to go clean up white space in old posts and templates (run once)


This way you get the CPU hit only on posting, the size of the posts in the database goes down a little bit, which further reduces load on the DB server.

LiveMicSociety
03-08-2006, 04:08 PM
Installed :up:

MissKalunji
03-08-2006, 04:43 PM
is it workign fine? does it really speed up the pages?

MissKalunji
03-08-2006, 04:44 PM
oops wrong thread

Citizen
03-24-2006, 02:14 PM
I know that this hack decreases the bandwidth load, but does it increase or decrease the processor load?

MissKalunji
03-24-2006, 03:26 PM
I know that this hack decreases the bandwidth load, but does it increase or decrease the processor load?


Yes it does :)

dethfire
03-24-2006, 03:32 PM
I know that this hack decreases the bandwidth load, but does it increase or decrease the processor load?

it will increase the load a little, nothing major that I've seen

Citizen
03-24-2006, 04:30 PM
I'm more worried about my processor load than bandwidth... I guess this hack isnt for me ;)

MissKalunji
03-24-2006, 08:46 PM
it will increase the load a little, nothing major that I've seen


how can it increase the loads? :surprised: if the pagess are reduces it should save up the load thats why it makes the page faster....

im using hellcats one and havent see no loads its even lower then it has ever been +accelerator etc

Zia
07-20-2006, 09:04 AM
helo shining,

is there any upgrade gonna release for vb3.6.0 ??

wtrk
09-04-2006, 02:54 PM
this hack is good, but causes alot of server load when the forum is busy. i had to remove it because of that.

bairy
09-16-2006, 11:50 AM
how can it increase the loads? :surprised: if the pagess are reduces it should save up the load thats why it makes the page faster....

Because it takes time and processing power to compress a template.
The pages are smaller in code, which means less for the surfer to download which means it appears quicker to them.

The only real benefit to this hack is saved bandwidth because I doubt the time saved in a smaller page download outweighs the time it takes to make it smaller.

sross
09-22-2006, 04:22 AM
I'd like to see this mod rebuilt for 3.6 but instead of it compressing the template each time it loads how about this mod creates a duplicate of your style that is fully compressed, then you just use that style. if you have to change templates use your old style then recompress. Is this possible? and for 3.6.1 plz! :)

Fenriz
09-23-2006, 03:59 PM
sross :up:

packetattack
09-26-2006, 12:34 AM
So has anyone tested this under vB3.6?

MissKalunji
05-02-2007, 03:58 AM
Because it takes time and processing power to compress a template.
The pages are smaller in code, which means less for the surfer to download which means it appears quicker to them.

The only real benefit to this hack is saved bandwidth because I doubt the time saved in a smaller page download outweighs the time it takes to make it smaller.

i see...

IM using it on 3.6.0

nagehnaseh
05-03-2011, 11:10 AM
شكراً Thank you