socket.getInputStream() more performant than BufferedInputStream?
I want to get your opinion:
which of the two implementations is more performant?
1. InputStream is = socket.getInputStream();
2. InputStream is = new BufferedInputStream(socket.getInputStream);
I think the first one is better because it reads directly and native from the socket whereas the second one first copies the data from the socket to an internal byte array. So if using is.read(byte) the first method should be better?! Am I right?!??