Added TODO for an optimization.
This commit is contained in:
parent
2f58b6980a
commit
3e3f9f181b
|
@ -20,6 +20,7 @@ public class HeadersBlockGenerator
|
|||
|
||||
public ByteBuffer generate(short version, Headers headers) throws StreamException
|
||||
{
|
||||
// TODO: ByteArrayOutputStream is quite inefficient, but grows on demand; optimize using ByteBuffer ?
|
||||
Charset iso1 = Charset.forName("ISO-8859-1");
|
||||
ByteArrayOutputStream buffer = new ByteArrayOutputStream(headers.getSize() * 64);
|
||||
writeCount(version, buffer, headers.getSize());
|
||||
|
|
Loading…
Reference in New Issue