Open emilk opened 2 weeks ago
Iterating over HashMap and HashSet causes a lot of bugs in our UI.
We should fix it where it makes sense, and loudly comment/name things as unsorted or similar when we want the performance (see CODE_STYLE.md).
unsorted
There are currently 51 violations of this lint
❯ cargo clippy 2>&1 | rg 'iteration over unordered hash-based type' | wc -l 51
Note that this lint doesn't catch everything. For instance, this code generates no warnings:
https://github.com/rerun-io/rerun/blob/0ac38a4df54c45f2c34f6a75c6044f9785719615/crates/re_entity_db/src/store_bundle.rs#L43-L46
Iterating over HashMap and HashSet causes a lot of bugs in our UI.
We should fix it where it makes sense, and loudly comment/name things as
unsorted
or similar when we want the performance (see CODE_STYLE.md).There are currently 51 violations of this lint
Note that this lint doesn't catch everything. For instance, this code generates no warnings:
https://github.com/rerun-io/rerun/blob/0ac38a4df54c45f2c34f6a75c6044f9785719615/crates/re_entity_db/src/store_bundle.rs#L43-L46