Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Jetty 12.1 http1 cleanups#15470

Draft
gregw wants to merge 7 commits into
jetty-12.1.xjetty/jetty.project:jetty-12.1.xfrom
jetty-12.1-http1-cleanupsjetty/jetty.project:jetty-12.1-http1-cleanupsCopy head branch name to clipboard
Draft

Jetty 12.1 http1 cleanups#15470
gregw wants to merge 7 commits into
jetty-12.1.xjetty/jetty.project:jetty-12.1.xfrom
jetty-12.1-http1-cleanupsjetty/jetty.project:jetty-12.1-http1-cleanupsCopy head branch name to clipboard

Conversation

@gregw

@gregw gregw commented Jul 23, 2026

Copy link
Copy Markdown
Contributor

Several cleanups of HttpParser to improve performance:

  • prevent large fields from flushing the field cache
  • remove unnecessary volatiles
  • replaced enum set check with cheaper ordinal comparisons
  • removed duplication of allow checks in compliance violation handling
  • avoid wrapping null/noop violation checkers

gregw added 7 commits July 23, 2026 17:12
…nce:

volatile:
```
Benchmark                         (hits)   Mode  Cnt          Score         Error  Units
HttpParseBenchmark.testLookAhead     100  thrpt   10  258037129.985 ± 6244505.876  ops/s
HttpParseBenchmark.testLookAhead      10  thrpt   10   24060672.303 ±  296570.615  ops/s
HttpParseBenchmark.testLookAhead       1  thrpt   10   24509531.408 ±  252538.339  ops/s
HttpParseBenchmark.testLookAhead       0  thrpt   10   25840884.479 ±  402577.664  ops/s
HttpParseBenchmark.testParse         100  thrpt   10   24431986.804 ±  230832.081  ops/s
HttpParseBenchmark.testParse          10  thrpt   10   22802546.443 ± 1109027.149  ops/s
HttpParseBenchmark.testParse           1  thrpt   10   23111702.171 ±  181907.514  ops/s
HttpParseBenchmark.testParse           0  thrpt   10   24215943.417 ±  467351.793  ops/s
```

without:
```
Benchmark                         (hits)   Mode  Cnt          Score         Error  Units
HttpParseBenchmark.testLookAhead     100  thrpt   10  262099341.862 ± 1079135.773  ops/s
HttpParseBenchmark.testLookAhead      10  thrpt   10   25721422.285 ±   90183.195  ops/s
HttpParseBenchmark.testLookAhead       1  thrpt   10   24184998.894 ±  503226.305  ops/s
HttpParseBenchmark.testLookAhead       0  thrpt   10   25838321.931 ±  333850.519  ops/s
HttpParseBenchmark.testParse         100  thrpt   10   25043859.336 ±  308036.951  ops/s
HttpParseBenchmark.testParse          10  thrpt   10   23096332.186 ±  428675.570  ops/s
HttpParseBenchmark.testParse           1  thrpt   10   23512370.456 ±  234577.879  ops/s
HttpParseBenchmark.testParse           0  thrpt   10   23794430.570 ±  461529.625  ops/s

```
@gregw
gregw requested review from joakime and lorban July 23, 2026 11:44
@gregw
gregw marked this pull request as draft July 24, 2026 09:32
@gregw

gregw commented Jul 24, 2026

Copy link
Copy Markdown
Contributor Author

@joakime Can you look at the recording of compliance failures in this PR. Some are recorded if they are allowed, others if they are not, and other both. Should we just always record?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: No status

Development

Successfully merging this pull request may close these issues.

1 participant

Morty Proxy This is a proxified and sanitized view of the page, visit original site.