Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/dave/stablegob
Fork of encoding/gob, with deterministic binary output
https://github.com/dave/stablegob
Last synced: about 1 month ago
JSON representation
Fork of encoding/gob, with deterministic binary output
- Host: GitHub
- URL: https://github.com/dave/stablegob
- Owner: dave
- Created: 2018-06-07T06:25:49.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2018-06-16T08:25:36.000Z (over 6 years ago)
- Last Synced: 2024-10-13T14:35:33.469Z (3 months ago)
- Language: Go
- Homepage:
- Size: 248 KB
- Stars: 4
- Watchers: 4
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# stablegob
Package stablegob is a fork of the Go standard library encoding/gob package at go version go1.10.1.
I've made some minor modifications that mean the binary output is deterministic. Maps are ordered by
key. This will have a performance impact, because the map keys are encoded and buffered before being sorted,
then written to the output.The binary output is 100% compatible with the standard library gob package.
# WARNING
My original changes had some issues which meant the output was not deterministic. The I've subsequently
fixed the problems, but the number of changes has been significantly greater this time round, and will
impact performance significantly more than previously. I wouldn't recommend using this package in it's
current state.