Skip to content

Use GetFieldArrayElement in AccessPath and add SetValueNested mutation in serde_benchmark.#42

Open
copybara-service[bot] wants to merge 1 commit into
mainfrom
test_943741299
Open

Use GetFieldArrayElement in AccessPath and add SetValueNested mutation in serde_benchmark.#42
copybara-service[bot] wants to merge 1 commit into
mainfrom
test_943741299

Conversation

@copybara-service

@copybara-service copybara-service Bot commented Jul 7, 2026

Copy link
Copy Markdown

Use GetFieldArrayElement in AccessPath and add SetValueNested mutation in serde_benchmark.

The benchmark now uses GetFieldArrayElement to directly access the first element of the "dataFeedElement" array, instead of first getting the entire array. This shows the speed improvement of using the direct element accessor.

It also now adds a benchmark of a mutation of a large json object by adding an element to the end of an internal array and then popping it.

@google-cla

google-cla Bot commented Jul 7, 2026

Copy link
Copy Markdown

Thanks for your pull request! It looks like this may be your first contribution to a Google open source project. Before we can look at your pull request, you'll need to sign a Contributor License Agreement (CLA).

View this failed invocation of the CLA check for more information.

For the most up to date status, view the checks section at the bottom of the pull request.

@copybara-service copybara-service Bot force-pushed the test_943741299 branch 2 times, most recently from df894bc to 72112f6 Compare July 7, 2026 18:06
…n in serde_benchmark.

The benchmark now uses GetFieldArrayElement to directly access the first element of the "dataFeedElement" array, instead of first getting the entire array. This shows the speed improvement of using the direct element accessor.

It also now adds a benchmark of a mutation of a large json object by adding an element to the end of an internal array and then popping it.

PiperOrigin-RevId: 943741299
@copybara-service copybara-service Bot changed the title Internal change Use GetFieldArrayElement in AccessPath and add SetValueNested mutation in serde_benchmark. Jul 8, 2026
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.

0 participants