Please join us at the new JavaWorld Q&A Forums. Your existing login will work there. The discussions here are now read-only.


JavaWorld Talkback >> 959084

Pages: 1
Anonymous
Unregistered




Use gzip compression
      #25476 - 01/02/06 01:29 AM

I am having performance problems with writing "text/javascript" content into the HTTPServletResponse using an OutputStreamWriter. It is taking 30 to 40 secs writing 1.1MB of dynamically generated javascript content (as String) into the OutputStream. I tried using the GZIPOutputStream but

a) The "write" operation performance has further dropped! by 20-30% and

b) The content reaching the browser is incomplete!

Any Suggestions?

Samir Jyoti


Post Extras: Print Post   Remind Me!   Notify Moderator  

Unregistered




Re: Use gzip compression [Re: Anonymous]
      #40553 - 11/14/06 10:39 AM

If you are getting incomplete data, I would suggest adding a "flush()" call at the end of the data transmission. Gzip is notorious for failing on a lack of flush().

Post Extras: Print Post   Remind Me!   Notify Moderator  

Unregistered




Re: Use gzip compression [Re: Anonymous]
      #43612 - 02/15/07 07:41 PM

[quote]I am having performance problems with writing "text/javascript" content into the HTTPServletResponse using an OutputStreamWriter. It is taking 30 to 40 secs writing 1.1MB of dynamically generated javascript content (as String) into the OutputStream. I tried using the GZIPOutputStream but

a) The "write" operation performance has further dropped! by 20-30% and

b) The content reaching the browser is incomplete!

Any Suggestions?

Samir Jyoti [/quote] [b]the "write"[/b]


Post Extras: Print Post   Remind Me!   Notify Moderator  
Pages: 1



Extra information
0 registered and 1 anonymous users are browsing this forum.

Moderator:   

Print Topic

Forum Permissions
      You cannot start new topics
      You cannot reply to topics
      HTML is disabled
      UBBCode is disabled

Rating:
Topic views: 9175

Rate this topic

Jump to

Contact us JavaWorld

Powered by UBB.threads™ 6.5.5