SIGN IN SIGN UP
astral-sh / ruff UNCLAIMED

An extremely fast Python linter and code formatter, written in Rust.

0 0 36 Rust

[ty] Compact retained semantic arrays (#25454)

## Summary

Reduces the memory retained by Salsa-cached semantic indexes by using a
`FrozenIndexVec` for index-addressed immutable arrays, like the
`FrozenMap` abstraction.

Apart from a >1% memory reduction, we see a 1% improvement on `attrs`,
`anyio`, `hydra-zen`, `multithreaded`; 1% regression on `pydantic` and
`freqtrade`.
C
Charlie Marsh committed
572e4b58e3d438f5e05b375702d65474b3dd040d
Parent: d475a23
Committed by GitHub <noreply@github.com> on 5/29/2026, 5:44:44 PM