Issue #3681
Better default HttpFields size with TODOs to tune. Signed-off-by: Greg Wilkins <gregw@webtide.com>
This commit is contained in:
parent
5f1a8696b1
commit
2831bfb159
|
@ -66,7 +66,7 @@ public class HttpFields implements Iterable<HttpField>
|
||||||
*/
|
*/
|
||||||
public HttpFields()
|
public HttpFields()
|
||||||
{
|
{
|
||||||
_fields=new HttpField[20];
|
this(16 ); // TODO tune default
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
@ -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;
|
||||||
|
|
Loading…
Reference in New Issue