Skip to content

Refactor serialization flow to remove StringBuilder stage#84

Merged
Aaronontheweb merged 3 commits intoakkadotnet:masterfrom
Arkatufus:Refactor-serialization-flow
Jul 18, 2025
Merged

Refactor serialization flow to remove StringBuilder stage#84
Aaronontheweb merged 3 commits intoakkadotnet:masterfrom
Arkatufus:Refactor-serialization-flow

Conversation

@Arkatufus
Copy link
Copy Markdown
Collaborator

Changes

  • Remove StringBuilder buffer stage from (de)serialization
  • The flow now is straight from object to byte array.
    Serialization: Object -> JsonTextWriter -> StreamWriter -> GZipStream -> MemoryStream -> Byte[]
    Deserialization: Byte[] -> MemoryStream -> GZipStream -> StreamReader -> JsonTextReader -> Object
  • Old HOCON settings are left intact but are ignored.

@Aaronontheweb Aaronontheweb enabled auto-merge (squash) July 18, 2025 18:44
@Aaronontheweb Aaronontheweb merged commit 2b473b2 into akkadotnet:master Jul 18, 2025
2 checks passed
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