RE: AW: Compression in HTML Serializer ?
The best solution would be to add JTidy in the HTML serializer. This way the HTML is optimized in a decent fashion, according to the W3C rules. Since JTidy is already included in Cocoon for the HTML file generator, can someone, with a little more programming experience than m,e set me in the right direction to accomplish this? Bert At 21:53 10/03/2002 +0100, you wrote: Alex, thanks for your help... but I'm using IIS (which have a similar ISAPI filter, anyway) and I wanted something to trim the fat before reaching the web-server. Anyway, setting indent to no for the HTMLSerializer and normalizing spaces in XSL I went a long way toward a slimmer HTML. I'm thinking about batch-processing my static Javascript files with a comment-and-blanks-stripper (like HTMLCompress) and serve them using the web-server... this should be the fastest way, I guess. Best regards, - Luca Morandini GIS Consultant [EMAIL PROTECTED] http://utenti.tripod.it/lmorandini/index.html - -Original Message- From: Alex McLintock [mailto:[EMAIL PROTECTED]] Sent: Sunday, March 10, 2002 9:26 PM To: [EMAIL PROTECTED] Subject: Re: AW: Compression in HTML Serializer ? Someone asked about removing superfluous spaces in generated html At 13:51 09/03/02, Jörn Heid wrote: You can remove most of those whitespaces (those between tags) with xslt und some configurations within the sitemap. This won't work for JavaScript or CSS as it's plain text. If you are using Apache server as the front end webserver and using something like the mod_web_app to talk to your servlet engine, you might consider using mod_gzip on the Apache box to compress the traffic between the web server and the client. Sorry for coming up with a non-Cocoon answer :-) Alex - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faqs.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faqs.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faqs.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: AW: Compression in HTML Serializer ?
From: Bert Van Kets [EMAIL PROTECTED] The best solution would be to add JTidy in the HTML serializer. This way the HTML is optimized in a decent fashion, according to the W3C rules. Since JTidy is already included in Cocoon for the HTML file generator, can someone, with a little more programming experience than m,e set me in the right direction to accomplish this? Bert, I would not recommend you to use JTidy if not really necessary. It builds a DOM, and this breaks one of the major Cocoon2 features, that is using SAX. The best solution IMHO is to have the XHTML created already according to the rules, and normalizing all spaces and not using the indentation. If you really want to go with JTidy, take a look at the JTidy Ant task in the Cocoon tools for a hint, or the Cocoon HRML Generator. -- Nicola Ken Barozzi [EMAIL PROTECTED] - verba volant, scripta manent - (discussions get forgotten, just code remains) - - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faqs.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: AW: Compression in HTML Serializer ?
FYI, we are using Apache 1.3.9, with MOD_GZIP running Cocoon under the JRun servlet engine and we are seeing 85%-95% compression ratios! We are returning large data sets to the user so needless to say this is a huge performance boost for us. -Aaron -Original Message- From: Alex McLintock [mailto:[EMAIL PROTECTED]] Sent: Sunday, March 10, 2002 2:26 PM To: [EMAIL PROTECTED] Subject: Re: AW: Compression in HTML Serializer ? Someone asked about removing superfluous spaces in generated html At 13:51 09/03/02, Jörn Heid wrote: You can remove most of those whitespaces (those between tags) with xslt und some configurations within the sitemap. This won't work for JavaScript or CSS as it's plain text. If you are using Apache server as the front end webserver and using something like the mod_web_app to talk to your servlet engine, you might consider using mod_gzip on the Apache box to compress the traffic between the web server and the client. Sorry for coming up with a non-Cocoon answer :-) Alex - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faqs.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faqs.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: AW: Compression in HTML Serializer ?
From: SANSONE, AARON M [Non-Pharmacia/1000] [EMAIL PROTECTED] FYI, we are using Apache 1.3.9, with MOD_GZIP running Cocoon under the JRun servlet engine and we are seeing 85%-95% compression ratios! We are returning large data sets to the user so needless to say this is a huge performance boost for us. Yes, IMHO this is the way to go. Tomcat has a Servlet filter for this too. -- Nicola Ken Barozzi [EMAIL PROTECTED] - verba volant, scripta manent - (discussions get forgotten, just code remains) - - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faqs.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: AW: Compression in HTML Serializer ?
Nicola, which Tomcat filter does it ? Could you point me to the relevant doc ? Moreover, could it make sense to use this filter and bypass the web-server completely, even for static contents ? Best regards and... thank you :) - Luca Morandini GIS Consultant [EMAIL PROTECTED] http://utenti.tripod.it/lmorandini/index.html - -Original Message- From: Nicola Ken Barozzi [mailto:[EMAIL PROTECTED]] Sent: Monday, March 11, 2002 5:47 PM To: [EMAIL PROTECTED] Subject: Re: AW: Compression in HTML Serializer ? From: SANSONE, AARON M [Non-Pharmacia/1000] [EMAIL PROTECTED] FYI, we are using Apache 1.3.9, with MOD_GZIP running Cocoon under the JRun servlet engine and we are seeing 85%-95% compression ratios! We are returning large data sets to the user so needless to say this is a huge performance boost for us. Yes, IMHO this is the way to go. Tomcat has a Servlet filter for this too. -- Nicola Ken Barozzi [EMAIL PROTECTED] - verba volant, scripta manent - (discussions get forgotten, just code remains) - - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faqs.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faqs.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: AW: Compression in HTML Serializer ?
From: Luca Morandini [EMAIL PROTECTED] Nicola, which Tomcat filter does it ? Could you point me to the relevant doc ? Look in the Tomcat docs, it should be there. Moreover, could it make sense to use this filter and bypass the web-server completely, even for static contents ? It depends (and Tomcat *is* a web server). If you are using Tomcat+Cocoon, it makes sense to make Tomcat filter what Cocoon does. But sometimes it's better to have Apache send static content, and this means that Apache should do it. Anyway, some tests showed that Apache+Tomcat+Cocoon can be slower than Tomcat+Cocoon alone. It all depends on your static-dynamic mix. The best thing to do is try both configs and decide :-) Ciao -- Nicola Ken Barozzi [EMAIL PROTECTED] - verba volant, scripta manent - (discussions get forgotten, just code remains) - - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faqs.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: AW: Compression in HTML Serializer ?
Nicola, ahem... I wasn't able to find such a filter :( Could you be so kind as to find it and share your findings with me (oops... us) ? Best regards, - Luca Morandini GIS Consultant [EMAIL PROTECTED] http://utenti.tripod.it/lmorandini/index.html - -Original Message- From: Nicola Ken Barozzi [mailto:[EMAIL PROTECTED]] Sent: Monday, March 11, 2002 6:05 PM To: [EMAIL PROTECTED] Subject: Re: AW: Compression in HTML Serializer ? From: Luca Morandini [EMAIL PROTECTED] Nicola, which Tomcat filter does it ? Could you point me to the relevant doc ? Look in the Tomcat docs, it should be there. Moreover, could it make sense to use this filter and bypass the web-server completely, even for static contents ? It depends (and Tomcat *is* a web server). If you are using Tomcat+Cocoon, it makes sense to make Tomcat filter what Cocoon does. But sometimes it's better to have Apache send static content, and this means that Apache should do it. Anyway, some tests showed that Apache+Tomcat+Cocoon can be slower than Tomcat+Cocoon alone. It all depends on your static-dynamic mix. The best thing to do is try both configs and decide :-) Ciao -- Nicola Ken Barozzi [EMAIL PROTECTED] - verba volant, scripta manent - (discussions get forgotten, just code remains) - - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faqs.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faqs.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: AW: Compression in HTML Serializer ?
Nicola, ahem... I wasn't able to find such a filter :( Did you look look at the workers doc ? [from the worker-how-to : ajpv13 is a more binary protocol and it try to compress some of the request data by coding frequently used strings as small integers.] ft. - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faqs.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: AW: Compression in HTML Serializer ?
Alex, thanks for your help... but I'm using IIS (which have a similar ISAPI filter, anyway) and I wanted something to trim the fat before reaching the web-server. Anyway, setting indent to no for the HTMLSerializer and normalizing spaces in XSL I went a long way toward a slimmer HTML. I'm thinking about batch-processing my static Javascript files with a comment-and-blanks-stripper (like HTMLCompress) and serve them using the web-server... this should be the fastest way, I guess. Best regards, - Luca Morandini GIS Consultant [EMAIL PROTECTED] http://utenti.tripod.it/lmorandini/index.html - -Original Message- From: Alex McLintock [mailto:[EMAIL PROTECTED]] Sent: Sunday, March 10, 2002 9:26 PM To: [EMAIL PROTECTED] Subject: Re: AW: Compression in HTML Serializer ? Someone asked about removing superfluous spaces in generated html At 13:51 09/03/02, Jörn Heid wrote: You can remove most of those whitespaces (those between tags) with xslt und some configurations within the sitemap. This won't work for JavaScript or CSS as it's plain text. If you are using Apache server as the front end webserver and using something like the mod_web_app to talk to your servlet engine, you might consider using mod_gzip on the Apache box to compress the traffic between the web server and the client. Sorry for coming up with a non-Cocoon answer :-) Alex - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faqs.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faqs.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Compression in HTML Serializer ?
Folks, I've been ruminating about speeding up my Cocoon app... and came up with the conclusion that un-necessary white spaces in my app use more than the usual 20-30% of an HTML page. Hence, I was wondering how to squeeze HTML of unnecessary spaces (and, maybe, of Javascript comments ?) in the HTML Serializer (or in a HTMLSerializer-derived serializer). I know, web-servers can use compression schemes, but I'd like to give them something slimmer anyway. Does it make any sense ? There's anyone who already thougth about it ? Is someone interested in developing it ? Best regards, - Luca Morandini GIS Consultant [EMAIL PROTECTED] http://utenti.tripod.it/lmorandini/index.html - - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faqs.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]