Closed mpoel closed 2 years ago
May be better to use FxHashMap
? It is also deterministic in compare to default hasher,
there is no randomization, and it would be faster then BTreeMap.
Whatever you prefer, local testing does confirm the determinism of the FxHashMap
. I'll update the branch
Thanks for PR.
Build script runs are currently not reproducible due to non-determinism of generated Rust code.
Only issue I ran into was during creation of JNI constants and JNI load/unload hooks. This PR adopts a sorted map, thus iteration order becomes deterministic across builds.