Hi, Further to the previous mail, I have already implemented my own AbstractHttpEntity to eliminate a byte[] copy. And I have seen the NIO implementations of HttpEntities, however they don't seem to copy using NIO methods so they won't be any faster than the standard IO implementations.
Anyway, it seems I have to go a level deeper than this class to be able to do the NIO copy. Is this the right direction to be digging in? Thanks, Tony > Message du 09/01/10 19:30 > De : "Tony Poppleton" > A : "HttpClient User Discussion [HttpClient User Discussion]" > Copie à : > Objet : Efficiently repeating identical requests > > Hi, > > I send out the exact same HttpPost request every 3 milliseconds and would > like to optimize it. > > As the POST data is exactly the same, I would like to hold it in a direct > ByteBuffer so it is in the kernel memory, and then use the efficient NIO > transfer methods to send it to the socket. Is this possible with HttpClient, > and if so how would I go about implementing this? > > Many thanks, > Tony > > --------------------------------------------------------------------------------------- > Orange vous informe que cet e-mail a ete controle par l'anti-virus mail. > Aucun virus connu a ce jour par nos services n'a ete detecte. >
