Hello, Could you try to turn off content negotiation (via the "negotiateContent" property) on your Directory and see if it improves performance?
Best regards, Jerome Louvel -- Restlet ~ Founder and Lead developer ~ http://www.restlet.org Noelios Technologies ~ Co-founder ~ http://www.noelios.com -----Message d'origine----- De : [email protected] [mailto:[email protected]] Envoye : vendredi 6 fevrier 2009 05:02 A : [email protected] Objet : war:// performance Hello, I was experimenting with loading resources from a servlet war today, using the war:// client in 1.2-M1: router.attach("/", new Directory(getContext, "war:///")); I noted that fetching a static resource took an exceptionally long time (curl http://localhost:8080/index.xhtml): reslet + unexploded war: 0.7 seconds reslet + exploded war: 0.15 seconds I tested with both Tomcat and Jetty, and saw the same results. Profiling demonstrates that nearly all of the time is spent in ServletContext's getResourcePaths(), called from ServletWarEntity's constructor. These results surprised me, so I thought I'd e-mail to ask -- is there something I'm doing wrong? Thanks! ------------------------------------------------------ http://restlet.tigris.org/ds/viewMessage.do?dsForumId=4447&dsMessageId=1110461 ------------------------------------------------------ http://restlet.tigris.org/ds/viewMessage.do?dsForumId=4447&dsMessageId=1140250

