Skip to content

Commit

Permalink
Fix PerfRegression by preparing field cache
Browse files Browse the repository at this point in the history
Fix #11513 by preparing the field cache
  • Loading branch information
gregw committed Mar 13, 2024
1 parent c05ae3b commit a6bd914
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -542,6 +542,7 @@ private boolean quickStartRequestLine(ByteBuffer buffer)
buffer.position(position + 2 * Long.BYTES);
_methodString = HttpMethod.GET.asString();
_version = HttpVersion.HTTP_1_1;
_fieldCache.prepare();
setState(State.HEADER);
_requestHandler.startRequest(_methodString, "/", _version);
return true;
Expand All @@ -551,6 +552,7 @@ private boolean quickStartRequestLine(ByteBuffer buffer)
buffer.position(position + 2 * Long.BYTES);
_methodString = HttpMethod.GET.asString();
_version = HttpVersion.HTTP_1_0;
_fieldCache.prepare();
setState(State.HEADER);
_requestHandler.startRequest(_methodString, "/", _version);
return true;
Expand Down

0 comments on commit a6bd914

Please sign in to comment.