Commit 6b83871
authored
perf(spanner): reduce autoboxing when reading data (#12741)
AbstractStructReader and Struct contained multiple method definitions
and calls that would trigger unnecessary object creation and auto-boxing
on the happy path. This change removes those, sometimes at the expense
of some duplicate code. This however reduces the number of object
creations for the happy flow, which is by far the most used code path.1 parent 26fb4c6 commit 6b83871
3 files changed
Lines changed: 228 additions & 150 deletions
File tree
- java-spanner/google-cloud-spanner/src/main/java/com/google/cloud/spanner
0 commit comments