Re: Faster resource servlet

2008-06-23 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 David, David Fisher wrote: | Incrementally try larger buffer sizes. Or, better yet, allow the buffer size to be configurable as deployment time as an init-param. | Also, | |> response.setContentLength( (int)file.length() ); | | May be expensive, se

Re: Faster resource servlet

2008-06-23 Thread David Fisher
Incrementally try larger buffer sizes. byte[] bbuf = new byte[1024]; byte[] bbuf = new byte[2048]; byte[] bbuf = new byte[4096]; byte[] bbuf = new byte[8192]; byte[] bbuf = new byte[16834]; Then narrow in on the