This repository was archived by the owner on Mar 12, 2026. It is now read-only.
Commit 9cec563
authored
feat: add hand-written Prometheus remote write request parser (#1628)
## Rationale
A hand-written remote write request parser to replace prost, with the
primary goal of achieving zero-allocation parsing.
## Detailed Changes
- The new `remote_write` directory contains the core implementation of
the hand-written parser.
- Add benchmarks.
- Add a .proto file in `pb_types`.
- Fix CI errors.
## Test Plan
- Unit tests can be found at the end of the `pb_reader.rs`.
- A comprehensive equivalence test is available in
`equivalence_test.rs`, which validates the correctness of the
hand-written parser by comparing its output with that of the prost
auto-generated parser.1 parent 25fdaac commit 9cec563
File tree
33 files changed
+3261
-56
lines changed- .github/workflows
- docs/assets
- src
- benchmarks
- benches
- src
- bin
- pb_types
- protos
- src
- remote_write
- src
- tests
- workloads
33 files changed
+3261
-56
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
61 | 61 | | |
62 | 62 | | |
63 | 63 | | |
| 64 | + | |
64 | 65 | | |
65 | 66 | | |
66 | 67 | | |
| |||
82 | 83 | | |
83 | 84 | | |
84 | 85 | | |
| 86 | + | |
85 | 87 | | |
86 | 88 | | |
87 | 89 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
9 | 9 | | |
10 | 10 | | |
11 | 11 | | |
| 12 | + | |
12 | 13 | | |
13 | 14 | | |
0 commit comments