Add "indexmap" feature for deterministic order #11
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "add_indexmap_feature"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
This PR allows to optionally use IndexMap and IndexSet from indexmap for order-preserving drop-in replacements for HashMap and HashSet.
If I understand the used algorithm correctly, this makes the output of solvent deterministic. (it does for the example. 😇).
As indexmap would add an dependency, and might be a tad slower in benchmarks, this is guarded by the non-default feature "deterministic".
Thanks!