Hi Richard,

Which connector are you using and version of Restlet? What is the response time 
when you don't add the ZipOutputStream wrapper?

Did you try leveraging the org.restlet.engine.application.EncodeRepresentation 
class?

Best regards,
Jerome
--
Restlet ~ Founder and Technical Lead ~ http://www.restlet.o​rg
Noelios Technologies ~ http://www.noelios.com



-----Message d'origine-----
De : jupiterroom [mailto:[email protected]] 
Envoyé : vendredi 2 juillet 2010 20:22
À : [email protected]
Objet : Very slow file serving

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

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

Reply via email to