-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(spanner): json null handling (#10660)
* perf(spanner): compare faster with json null value By using a string comparison the compiler can significantly optimize the check. * fix(spanner): avoid reusing []byte("null") The caller can change the result from these calls and this may cause weird bugs down the line. Instead allocate a new slice. --------- Co-authored-by: rahul2393 <[email protected]>
- Loading branch information
Showing
2 changed files
with
30 additions
and
18 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters