Skip to content

Commit 2e83477

Browse files
Refactor wire schema format (#121)
Resolves #52 Resolves #87 Resolves #119 - Refactored wire schema format to reduce its size. The size went from 184 bytes to 16 bytes for Otel/STEF Metrics. See specification.md for the description of the new format. This is important if in the future we decide to add a stateless network protocol where the size of the schema on the wire is important since it is repeated for every payload. - Added new randomized tests that verify writing/reading STEF streams with overridden schema (narrowed schema than generated) to ensure the new wire schema format works correctly. - The new tests found several bugs in codecs that needed to be fixed. There is no measurable change in performance, verified by running the benchmarks.
1 parent 5ad5afe commit 2e83477

File tree

172 files changed

+5757
-3903
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

172 files changed

+5757
-3903
lines changed

examples/jsonl/internal/jsonstef/common.go

Lines changed: 74 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

examples/jsonl/internal/jsonstef/jsonobject.go

Lines changed: 6 additions & 5 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

examples/jsonl/internal/jsonstef/jsonvalue.go

Lines changed: 58 additions & 33 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

examples/jsonl/internal/jsonstef/jsonvaluearray.go

Lines changed: 14 additions & 10 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

examples/jsonl/internal/jsonstef/readerstate.go

Lines changed: 3 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)