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

Reply via email to