Anonymous
Unregistered
|
|
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
|
Unregistered
|
|
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().
|
Unregistered
|
|
[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]
|