Skip to content

Commit f778e50

Browse files
committed
Don't intern ProgramClause at all
This seems to work best performance/memory-wise.
1 parent 5662003 commit f778e50

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

crates/hir_ty/src/traits/chalk/interner.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ impl chalk_ir::interner::Interner for Interner {
7070
type InternedGoal = Arc<GoalData<Self>>;
7171
type InternedGoals = Vec<Goal<Self>>;
7272
type InternedSubstitution = Interned<InternedSubstitutionInner>;
73-
type InternedProgramClause = Arc<chalk_ir::ProgramClauseData<Self>>;
73+
type InternedProgramClause = chalk_ir::ProgramClauseData<Self>;
7474
type InternedProgramClauses = Interned<InternedWrapper<Vec<chalk_ir::ProgramClause<Self>>>>;
7575
type InternedQuantifiedWhereClauses = Interned<InternedWrapper<Vec<chalk_ir::QuantifiedWhereClause<Self>>>>;
7676
type InternedVariableKinds = Interned<InternedVariableKindsInner>;
@@ -315,7 +315,7 @@ impl chalk_ir::interner::Interner for Interner {
315315
&self,
316316
data: chalk_ir::ProgramClauseData<Self>,
317317
) -> Self::InternedProgramClause {
318-
Arc::new(data)
318+
data
319319
}
320320

321321
fn program_clause_data<'a>(

0 commit comments

Comments
 (0)