mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-11-13 17:35:21 +00:00
shrink_to_fit() in more places
This saves 18mb on `analysis-stats .`, without regressing speed.
This commit is contained in:
parent
5ff4ba347d
commit
1fe060719a
8 changed files with 51 additions and 27 deletions
|
|
@ -43,7 +43,7 @@ impl_internable!(
|
|||
InternedWrapper<ConstData>,
|
||||
InternedWrapper<ConstScalar>,
|
||||
InternedWrapper<Vec<CanonicalVarKind>>,
|
||||
InternedWrapper<Vec<ProgramClause>>,
|
||||
InternedWrapper<Box<[ProgramClause]>>,
|
||||
InternedWrapper<Vec<QuantifiedWhereClause>>,
|
||||
InternedWrapper<SmallVec<[Variance; 16]>>,
|
||||
);
|
||||
|
|
@ -60,7 +60,7 @@ impl chalk_ir::interner::Interner for Interner {
|
|||
type InternedGoal = Arc<GoalData>;
|
||||
type InternedGoals = Vec<Goal>;
|
||||
type InternedSubstitution = Interned<InternedWrapper<SmallVec<[GenericArg; 2]>>>;
|
||||
type InternedProgramClauses = Interned<InternedWrapper<Vec<ProgramClause>>>;
|
||||
type InternedProgramClauses = Interned<InternedWrapper<Box<[ProgramClause]>>>;
|
||||
type InternedProgramClause = ProgramClauseData;
|
||||
type InternedQuantifiedWhereClauses = Interned<InternedWrapper<Vec<QuantifiedWhereClause>>>;
|
||||
type InternedVariableKinds = Interned<InternedWrapper<Vec<VariableKind>>>;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue