ruff
1be43941 - [red-knot] Consolidate `SymbolBindings`/`SymbolDeclarations` state (#16286)

Comment changes are shownComment changes are hidden
Commit
152 days ago
[red-knot] Consolidate `SymbolBindings`/`SymbolDeclarations` state (#16286) This updates the `SymbolBindings` and `SymbolDeclarations` types to use a single smallvec of live bindings/declarations, instead of splitting that out into separate containers for each field. I'm seeing an 11-13% `cargo bench` performance improvement with this locally (for both cold and incremental). I'm interested to see if Codspeed agrees! --------- Co-authored-by: Carl Meyer <carl@astral.sh>
Author
Parents
  • crates/red_knot_python_semantic/src/semantic_index
    • File
      use_def.rs
    • use_def
      • File
        bitset.rs
      • File
        symbol_state.rs
Loading