Skip to content

InternalRegistry vectors : order importance and efficiency #7357

Closed Answered by SanjoDeundiak
younes-io asked this question in Q&A
Discussion options

You must be logged in to vote

Hey @younes-io , thanks for taking a look at this part of the code. The choice here is intentional. While the order doesn't matter and using HashMap is absolutely a good option too, I don't think it's certainly better, it's a trade-off. Vector may be more predictable, memory efficient and performant if the number of elements is relatively small (~up to 100). I don't think we would like to make a change without clear understanding of why it would be better

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by SanjoDeundiak
Comment options

You must be logged in to vote
0 replies
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