Skip to content

Commit

Permalink
Fix PerfRegression by preparing field cache (#11517)
Browse files Browse the repository at this point in the history
Fix #11513 by preparing the field cache
  • Loading branch information
gregw authored Mar 13, 2024
1 parent d07d13f commit c25e1aa
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 c25e1aa

Please sign in to comment.