Skip to content

Conversation

@conomist
Copy link
Contributor

Removes unnecessary key cloning and allocation overhead in UnorderedHashMap::into_iter_sorted() method.

@reviewable-StarkWare
Copy link

This change is Reviewable

Copy link
Collaborator

@orizi orizi left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Reviewable status: 0 of 1 files reviewed, 1 unresolved discussion


crates/cairo-lang-utils/src/unordered_hash_map.rs line 264 at r1 (raw file):

        Key: Ord,
    {
        self.0.into_iter().sorted_by(|(key_a, _), (key_b, _)| key_a.cmp(key_b))

this does nothing. close PR

@orizi
Copy link
Collaborator

orizi commented Nov 24, 2025

no respose. closing.

@orizi orizi closed this Nov 24, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants