Granny's Programming Pearls
"inside of every large program is a small program struggling to get out"
JavaRanch.com/granny.jsp
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Liutauras Vilda
  • Bear Bibeault
  • Junilu Lacar
  • Martin Vashko
Sheriffs:
  • Jeanne Boyarsky
  • Tim Cooke
  • Knute Snortum
Saloon Keepers:
  • Ron McLeod
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
Bartenders:
  • Scott Selikoff
  • salvin francis
  • Piet Souris

Just a suggestion

 
Ranch Hand
Posts: 3640
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Presently JR is delivering HTML contents with white spaces and also it is not compressed.

If administrator able to zip the HTML content and able to remove the white spaces from the response, there can be a huge save of bandwidth.
[ June 15, 2006: Message edited by: Chetan Parekh ]
 
Rancher
Posts: 1189
16
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

Originally posted by Chetan Parekh:
Presently JR is delivering HTML contents with white spaces and also it is not compressed.

If administrator able to zip the HTML content and able to remove the white spaces from the response, there can be a huge save of bandwidth.

[ June 15, 2006: Message edited by: Chetan Parekh ]


I'mnotsurethatwoudlbesuchagoodidea.
 
Rancher
Posts: 43011
76
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Looking at this page right here, there is actually very little whitespace, compared to an average JSP page. There are some empty lines, and the JavaScript code has leading spaces, but that's maybe 100 bytes per page. Where do you see the huge savings coming from - compression alone?
 
Rancher
Posts: 13459
Android Eclipse IDE Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
This page was 23,123 bytes before simple compression and 22,680 after. A saving of 443 bytes
Enabling gzip compression would make a significantly larger difference.
 
Ranch Hand
Posts: 1847
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
in bandwidth, but what would it do for serverload?
gzip compression of the http stream would mean more cpu cycles per request, and the server is busy enough as it is quite often.
 
David O'Meara
Rancher
Posts: 13459
Android Eclipse IDE Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Good point. There are also web server plug ins to strip white space, but again it is cpu cycles. I can probably strip another 5 or 10 bytes if required?
 
Ulf Dittmer
Rancher
Posts: 43011
76
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
DOM said:

I can probably strip another 5 or 10 bytes if required?


Damn straight you can. What's with the funny character in your last name? And anyway, short first names are all the rage now - look at mine!
 
ranger
Posts: 17344
11
Mac IntelliJ IDE Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

Originally posted by Ulf Dittmer:
look at mine!





Yeah, your's is the sound one makes when they get punched in the stomach, or do something embarassing and gets caught.

Mark
 
Bartender
Posts: 9589
13
Mac OS X Linux Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

Originally posted by Ulf Dittmer:
short first names are all the rage now - look at mine!



Bah. My short first AND last name has saved countless bytes!
 
author
Posts: 14112
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

Originally posted by Joe Ess:


Bah. My short first AND last name has saved countless bytes!



But you make up for it with your signature...
 
Wanderer
Posts: 18671
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
...says the guy with a signature twice as long.
 
author and iconoclast
Posts: 24203
43
Mac OS X Eclipse IDE Chrome
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
My name is an evil waste of bandwidth -- along with most of what I say.
 
Ilja Preuss
author
Posts: 14112
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

Originally posted by Jim Yingst:
...says the guy with a signature twice as long.



Well, yeah - but I never said that I was even trying to save bandwith. Otherwise I wouldn't have posted at all...
 
I will suppress my every urge. But not this shameless plug:
Java file APIs (DOC, XLS, PDF, and many more)
https://products.aspose.com/total/java
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!