Skip to content

feat: Duplicate functions in ProtoParserTools.java - #911

Open
ldintr wants to merge 1 commit into
ldintr-addPbjReadWriteTestfrom
ldintr-dupeProtoParser
Open

feat: Duplicate functions in ProtoParserTools.java#911
ldintr wants to merge 1 commit into
ldintr-addPbjReadWriteTestfrom
ldintr-dupeProtoParser

Conversation

@ldintr

@ldintr ldintr commented Aug 31, 2026

Copy link
Copy Markdown
Contributor

Adds PbjReader overloads alongside nearly every existing read method in ProtoParserTools, delegating to PbjReader's typed methods. Purely additive — no call sites switched yet.

Overview: PbjReader/PbjWriter are a leaner, buffer-reusing alternative to the existing ReadableSequentialData/WritableSequentialData read/write path used by Codec, ProtoParserTools/ProtoWriterTools, and the pbj-compiler generators. They reuse an internal ~16KB (L1-cache-sized) buffer across many parse/write calls instead of allocating per call, avoid checked-exception-based control flow by recording a sticky internal error code instead, and split hot-path operations (e.g. zigzag vs. non-zigzag varints, direct UTF-8 decode into a reusable char[]) into dedicated fast methods.

@ldintr
ldintr requested review from a team as code owners August 31, 2026 16:43
@ldintr ldintr self-assigned this Aug 31, 2026
@github-actions

Copy link
Copy Markdown

JUnit Test Report

   522 files  ±0     522 suites  ±0   29s ⏱️ +4s
 1 639 tests ±0   1 635 ✅ ±0   4 💤 ±0  0 ❌ ±0 
10 857 runs  ±0  10 829 ✅ ±0  28 💤 ±0  0 ❌ ±0 

Results for commit b93654b. ± Comparison against base commit 2146d60.

@github-actions

Copy link
Copy Markdown

Integration Test Report

    428 files  ±0      428 suites  ±0   19m 7s ⏱️ +17s
115 048 tests ±0  115 048 ✅ ±0  0 💤 ±0  0 ❌ ±0 
115 292 runs  ±0  115 292 ✅ ±0  0 💤 ±0  0 ❌ ±0 

Results for commit b93654b. ± Comparison against base commit 2146d60.

Signed-off-by: ldintr <levo.d@swirldslabs.com>
@ldintr
ldintr force-pushed the ldintr-dupeProtoParser branch from b93654b to e2ce0e1 Compare September 10, 2026 19:08
@ldintr
ldintr requested review from a team as code owners September 10, 2026 19:08
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