Re: Faster resource servlet
-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
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