Skip to content

[codex] Reduce protocyte benchmark parse gap#32

Merged
anthonyprintup merged 1 commit into
mainfrom
codex/benchmark-gap-optimize
May 8, 2026
Merged

[codex] Reduce protocyte benchmark parse gap#32
anthonyprintup merged 1 commit into
mainfrom
codex/benchmark-gap-optimize

Conversation

@anthonyprintup
Copy link
Copy Markdown
Owner

Summary

  • Generate the Protocyte benchmark target from smoke/proto/benchmark.proto so Protocyte and protobuf use the same logical schema.
  • Add shared benchmark fixtures plus a cross-library smoke test for equivalent population, round trips, and comparable encoded sizes.
  • Optimize hosted length-delimited parsing with staged bulk reads while preserving per-field merge_from() atomicity.
  • Avoid copying map entries in generated size and serialize loops.

Validation

  • uv run pytest -q (99 passed)
  • uv run python -m compileall src tests
  • cmake --build smoke\build\Release --target protocyte_host_smoke protocyte_host_benchmark protocyte_host_protobuf_benchmark protocyte_host_benchmark_smoke
  • smoke\build\Release\protocyte_host_smoke.exe "merge_from keeps field state after malformed field occurrences"
  • smoke\build\Release\protocyte_host_benchmark_smoke.exe
  • Release benchmark runs for Protocyte and protobuf with matching benchmark args

Notes

Protocyte's per-field atomic parse commit behavior remains intact; malformed string/bytes reads are covered by new regression sections.

Generate the Protocyte benchmark target from the shared benchmark schema and add fixtures that populate equivalent Protocyte and protobuf messages.

Use staged bulk reads for hosted string and bytes parsing while preserving per-field merge_from atomicity, and avoid map entry copies in generated size and serialize loops.

Add cross-library benchmark smoke coverage and malformed length-delimited field regressions.
@anthonyprintup
Copy link
Copy Markdown
Owner Author

@codex review

Copy link
Copy Markdown

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 357c42d3bd

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread src/protocyte/runtime/runtime.hpp
Comment thread src/protocyte/runtime/runtime.hpp
@anthonyprintup anthonyprintup marked this pull request as ready for review May 8, 2026 01:39
@anthonyprintup anthonyprintup merged commit d7aeda5 into main May 8, 2026
8 checks passed
@anthonyprintup anthonyprintup deleted the codex/benchmark-gap-optimize branch May 8, 2026 01:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant