Skip to content

Question about the amplify library #72

Closed Answered by dr-orlovsky
cymqqqq asked this question in Q&A
Discussion options

You must be logged in to vote

Rationale:

1, I am the author and maintainer of amplify crates. I wrote them specifically to avoid external dependencies for the consensus-critical code as much as possible.
2. TinyOrdMap you are mentioning is an example of so-called confined collections from by the amplify crate. Their purpose is to provide compile-time guarantees on the collection size (upper and lower bounds).
3. thus no, we can't "just use" hashmap or hashset since we will lose these guarantees.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by cymqqqq
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants