1

I'm using WebDaV as a file exchange solution between a client and a server I'm both developping.

Client uses Apache Commons VFS, and server uses Glassfish 3 WebDAV servlet. That seems sensible choices, no ?

Anyway, each time I write a file to server (using as an example FileObject#copyFrom(...)), I find the operation to perform incredibly slowly (100 s for a one-line file write when both client and server run on same machine).

So, do you see comparable delays ? And is there anything that can be done to improve those ?

Riduidel
  • 22,052
  • 14
  • 85
  • 185

1 Answers1

3

Seems like current implementation of commons-vfs WebDAV (which relies upon an old version of Jackrabbit webdav) parses all DTDs it receives alongside HTTP response. For that, it must grab them where they reside on the web. This is obviously not the most efficient way to do.

To fix that, I've started a sardine-backed (found from that question) implementation of commons-vfs-webdav, which reveals to be way faster (that 100 s. test now taks 0.233 s.)

Community
  • 1
  • 1
Riduidel
  • 22,052
  • 14
  • 85
  • 185