Skip to content

Add sorted serialization - #127

Merged
jinlow merged 5 commits into
mainfrom
feat/deterministic-serialization
Nov 12, 2026
Merged

jinlow merged 5 commits into
mainfrom
feat/deterministic-serialization

Conversation

@jinlow

@jinlow jinlow commented Nov 12, 2026

Copy link
Copy Markdown
Owner

Want the serialization to be deterministic, the output json should always be the same for the same model. Currently this was not happening because of the usage of HashMap and HashSet, which do not guarantee order, instead swap for BTree versions only at serialization.

@jinlow
jinlow merged commit 843e560 into main Nov 12, 2026
23 checks passed
@jinlow
jinlow deleted the feat/deterministic-serialization branch November 12, 2026 19:47
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.

1 participant