Better default HttpFields size with TODOs to tune.

Signed-off-by: Greg Wilkins <gregw@webtide.com>
This commit is contained in:
Greg Wilkins 2019-05-21 12:40:40 +02:00
parent 5f1a8696b1
commit 2831bfb159
2 changed files with 2 additions and 2 deletions

View File

@ -66,7 +66,7 @@ public class HttpFields implements Iterable<HttpField>
*/ */
public HttpFields() public HttpFields()
{ {
_fields=new HttpField[20]; this(16 ); // TODO tune default
} }
/** /**

View File

@ -39,7 +39,7 @@ public class MetaDataBuilder
private HostPortHttpField _authority; private HostPortHttpField _authority;
private String _path; private String _path;
private long _contentLength=Long.MIN_VALUE; private long _contentLength=Long.MIN_VALUE;
private HttpFields _fields = new HttpFields(10); private HttpFields _fields = new HttpFields(16); // TODO make this tunable
private HpackException.StreamException _streamException; private HpackException.StreamException _streamException;
private boolean _request; private boolean _request;
private boolean _response; private boolean _response;