sevenstring guitars   sevenstring registry   photo gallery 
Sevenstring.org - The Seven String Guitar Authority
home groups register
Go Back  
 
User: 
Pass:  
Site News & Support - Contests, updates, additions & otherwise. If you have problems/suggestions, this is the place as well.
Welcome to sevenstring.org! You are currently viewing the site as a guest which gives you limited access to most features.
Most ad placements do not show to registered members. Register Now!

Reply
 
LinkBack Thread Tools Display Modes
Old 01-15-2006, 01:28 PM   #1
Chris
metalguitarist.org
 
Chris's Avatar
 
Join Date: Apr 2004
Location: Boston, Mass
Posts: 16,619

Real Name: Mr. F. Johnson
Main Seven: Sherman Custom
Main ERG: Douglas 6ST Bass
Rig: 2101 -> S160 -> Mesa

Thanked: 538

Chris is an automated shredding machine.Chris is an automated shredding machine.Chris is an automated shredding machine.Chris is an automated shredding machine.Chris is an automated shredding machine.Chris is an automated shredding machine.Chris is an automated shredding machine.Chris is an automated shredding machine.Chris is an automated shredding machine.Chris is an automated shredding machine.Chris is an automated shredding machine.Chris is an automated shredding machine.Chris is an automated shredding machine.Chris is an automated shredding machine.Chris is an automated shredding machine.Chris is an automated shredding machine.
Template compression

If you're wondering why/what the:

[Output: 99.72 Kb. CMP 90.69 Kb. Net 9.03 Kb. (9.05%)]

Line is at the bottom of every page, I'm testing out some realtime template compression that strips unneeded whitespaces/characters and totally does away with the display of any commented code on your end.

For example, when I edit templates and styles here, I almost always comment out the sections that I'm working on. So if I'm removing 15 lines of code, I usually leave it in the actual code itself, but comment it out so that your browser doesn't execute it. So if you view the page source, while the HTML isn't getting parsed, the text itself is still being sent to you.

This compression strips the output on the fly, so you get only the code you need sent to your browser and nothing else. The listing at the bottom is the total output, CMP (compression amount) and the percentage the page you're viewing is down from it's original size.

While 9.05% might not seem like much, a wee quick math:

Average hits per day over the last week: 220880
Avg hits * 9.05k savings: 1998964
Average bandwith savings over 30 days: 1.90636 GB

So in the end, 2GB less traffic coming out = faster pages for all. If you notice any problems, please let me know and I'll see what I can do. The only thing this would "break" per se is text alignment, but since I'm only replacing vBulletin variables, I believe you shouldn't see any odd behavior.

For you web geeks, because I know you're out there, here's how I'm doing it:

Code:
$page_byte=strlen($output);
$output=preg_replace ('/\r\n(\s*)/', "\r\n", $output);
$output=preg_replace ('/<!-- .*? -->/',"",$output);
The second line is the biggest jump so far, just stripping out the comments spikes compression by almost 5%.
View Chris's Photo Album Offline   Reply With Quote
Old 01-15-2006, 01:33 PM   #2
Donnie
Go Team Venture!
 
Donnie's Avatar
 
Join Date: Jul 2004
Location: Bonney Lake, WA.
Posts: 4,322

Main Seven: Ibanez RG1077XL-BK
Thanked: 11

Donnie is deemed true by Crom himselfDonnie is deemed true by Crom himselfDonnie is deemed true by Crom himselfDonnie is deemed true by Crom himselfDonnie is deemed true by Crom himselfDonnie is deemed true by Crom himselfDonnie is deemed true by Crom himselfDonnie is deemed true by Crom himselfDonnie is deemed true by Crom himselfDonnie is deemed true by Crom himselfDonnie is deemed true by Crom himselfDonnie is deemed true by Crom himself
View Donnie's Photo Album Offline   Reply With Quote
Old 01-15-2006, 01:35 PM   #3
Leon
{##[====:::.
Super Moderator
 
Leon's Avatar
 
Join Date: Jul 2004
Location: The Ohio Crew
Posts: 11,750

Main Seven: RG7620 of Doom
Rig: Mesa / Sovtek

Thanked: 78

Leon is Odin incarnateLeon is Odin incarnateLeon is Odin incarnateLeon is Odin incarnateLeon is Odin incarnateLeon is Odin incarnateLeon is Odin incarnateLeon is Odin incarnateLeon is Odin incarnateLeon is Odin incarnateLeon is Odin incarnateLeon is Odin incarnateLeon is Odin incarnateLeon is Odin incarnate

I have a radical idea. The door swings both ways,
we could reverse the particle flow through the gate.
We'll cross the streams.
View Leon's Photo Album Offline   Reply With Quote
Old 01-15-2006, 04:05 PM   #4
D-EJ915
<3's Tsukasa
 
D-EJ915's Avatar
 
Join Date: Oct 2005
Location: Virginia, USA
Posts: 16,925

Real Name: Kagami
Main Seven: ESP MH-307
Rig: Randall RG75G2C

Thanked: 206

D-EJ915 is Odin incarnateD-EJ915 is Odin incarnateD-EJ915 is Odin incarnateD-EJ915 is Odin incarnateD-EJ915 is Odin incarnateD-EJ915 is Odin incarnateD-EJ915 is Odin incarnateD-EJ915 is Odin incarnateD-EJ915 is Odin incarnateD-EJ915 is Odin incarnateD-EJ915 is Odin incarnateD-EJ915 is Odin incarnateD-EJ915 is Odin incarnateD-EJ915 is Odin incarnate
Cool, and it makes us look like we know something.

My Site: əBCAir
View D-EJ915's Photo Album Offline   Reply With Quote
Old 01-16-2006, 10:16 PM   #5
Chris
metalguitarist.org
 
Chris's Avatar
 
Join Date: Apr 2004
Location: Boston, Mass
Posts: 16,619

Real Name: Mr. F. Johnson
Main Seven: Sherman Custom
Main ERG: Douglas 6ST Bass
Rig: 2101 -> S160 -> Mesa

Thanked: 538

Chris is an automated shredding machine.Chris is an automated shredding machine.Chris is an automated shredding machine.Chris is an automated shredding machine.Chris is an automated shredding machine.Chris is an automated shredding machine.Chris is an automated shredding machine.Chris is an automated shredding machine.Chris is an automated shredding machine.Chris is an automated shredding machine.Chris is an automated shredding machine.Chris is an automated shredding machine.Chris is an automated shredding machine.Chris is an automated shredding machine.Chris is an automated shredding machine.Chris is an automated shredding machine.
This is out of the "testing" stage and simply enabled. I've stripped the compression stats from the bottom of the page.
View Chris's Photo Album Offline   Reply With Quote
Reply

Thread Tools
Display Modes

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Know Lots About Compression: Chris Recording Studio 10 02-06-2008 03:29 PM
Four Page Drum Recording Reference (EQ, Gating, Compression) Vince Recording Studio 37 02-01-2008 12:10 PM
IMPORTANT QUESTION: RE: FLOYD ROUTING TEMPLATE TonyFlyingSquirrel Sevenstring Guitars 4 11-14-2006 01:54 PM

The Seven String Guitar Authority
 Raleigh Music Academy Soloway Guitars Angel Vivaldi
 Eric Clemenzi Ra Fans Vince LuPone
 The Guitar Workshop Tremol-No Division
 Michael Sherman Guitars Out of this Swirled Drew Peterson
Powered by vBulletin 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.2.0
"777" Logo © Darren Wilson
Privacy Policy
Affiliate Links Directory


  One of the largest message boards on the web !

RSS  Add to My Yahoo!  Add to iGoogle

Page generated in 0.34008 seconds with 16 queries