Skip to content

Optimize collection and protobuf value handling - #1018

Merged
snazy merged 3 commits into
projectnessie:mainfrom
snazy:opt-coll-pb-val-handl
Oct 28, 2026
Merged

snazy merged 3 commits into
projectnessie:mainfrom
snazy:opt-coll-pb-val-handl

Conversation

@snazy

@snazy snazy commented Oct 22, 2026

Copy link
Copy Markdown
Member

Reduce wrapper allocation in collection traversal, membership, and generated protobuf field access. Preserve live list sizes, iterator cursor semantics, custom collection contracts, and dynamic-message fallback.

Keep hashes consistent across CEL numeric types, normalize unsigned protobuf fields without sign extension, and preserve Java map equality and extension compatibility. Add collection, iterator, generated-field, and public API regression coverage plus benchmarks.

Reduce wrapper allocation in collection traversal, membership, and generated protobuf field access. Preserve live list sizes, iterator cursor semantics, custom collection contracts, and dynamic-message fallback.

Keep hashes consistent across CEL numeric types, normalize unsigned protobuf fields without sign extension, and preserve Java map equality and extension compatibility. Add collection, iterator, generated-field, and public API regression coverage plus benchmarks.
@snazy
snazy requested a review from XN137 October 22, 2026 12:44
Compare map values using Java equality while retaining CEL equality for evaluation. Restrict cross-implementation Java equality to the built-in native and wrapped representations so custom maps can retain identity semantics.

Add regressions for unknown expression IDs, hash-based lookup, and symmetric equality with empty and populated custom maps.
@snazy
snazy requested a review from XN137 October 27, 2026 15:09
Limit absent-wrapper null substitution to singular fields. Generated getters must retain empty lists for repeated wrappers, matching descriptor access.

Cover all nine wrapper types with empty and populated generated and dynamic messages through registry and object getters.
@snazy
snazy requested a review from XN137 October 28, 2026 08:19
@snazy
snazy merged commit 7c3905d into projectnessie:main Oct 28, 2026
3 checks passed
@snazy
snazy deleted the opt-coll-pb-val-handl branch October 28, 2026 10:27
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.

2 participants