Hi,

I've extended OutputRepresentation and I use the OutputStream that gets
passed to it like this:

OutputStream < ZipOutputStream < ObjectOutputStream.

Basically I'm serializing Objects that will end up being streamed to the
client, so no Zip on the server side.  This all works, the only issue is the
speed at which it happens.  For an 80kb zip it takes around 15-16 seconds
and most of the time is spent on objectOutputStream.write(Object)

Any ideas what I'm doing wrong?

p.s in my unit test, I pass a FileOutputStream to the write method of my
OutputRepresentation and it takes less that a seconds

Richard
-- 
View this message in context: 
http://restlet-discuss.1400322.n2.nabble.com/Very-slow-file-serving-tp5248755p5248755.html
Sent from the Restlet Discuss mailing list archive at Nabble.com.

------------------------------------------------------
http://restlet.tigris.org/ds/viewMessage.do?dsForumId=4447&dsMessageId=2628727

Reply via email to