Closed
Description
Currently our implementation of indexed types such as AllocId
, DefId
, and soon rust-lang/rust#115772 Span
relies on https://github.com/rust-lang/rust/blob/master/compiler/rustc_smir/src/rustc_internal/mod.rs#L141-L154 this kind of brute way of doing things, this is fine for our small use cases but @oli-obk thinks and suggests this is going to be a problem in the future when we face real-world use cases where thousands of ids will be iterated, they suggest we should add a hasmap from value to index per table to improve our handling of these types.
Metadata
Metadata
Assignees
Labels
No labels