Skip to content

Conversation

@cshannon
Copy link
Contributor

@cshannon cshannon commented Apr 7, 2023

BulkSerialize had a Gson adapter to serialize byte arrays to Base64 encoding that can be re-used by other areas in the code. Also update the uses of the base 64 Gson object to be static and re-used as the objects are thread-safe so can be created just one time.

I noticed this when working on serializing ranges as part of the updates for #1327 and this PR will be the first part of my PR for that task but this was something that could be done separately and pulled out into its own PR.

BulkSerialize had a Gson adapter to serialize byte arrays to Base64
encoding that can be re-used by other areas in the code. Also update the
uses of the base 64 Gson object to be static and re-used as the objects
are thread-safe so can be created just one time.
@cshannon cshannon self-assigned this Apr 7, 2023
@cshannon cshannon merged commit a6c77eb into apache:main Apr 7, 2023
cshannon added a commit that referenced this pull request Apr 8, 2023
Minor follow up to #3285 to move the base 64 serializer to a json
subpackage under util
@cshannon cshannon deleted the base64Json branch May 7, 2023 19:23
@ctubbsii ctubbsii added this to the 3.0.0 milestone Jul 12, 2024
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.

4 participants