Skip to content

Eliminate thunk in 'IfaceTyCon'

This MR closes #24516 (closed)

Heap analysis showed that IfaceTyCon retains a thunk to IfaceTyConInfo, defeating the sharing of the most common instances of IfaceTyConInfo. We make sure the indirection is removed by adding bang patterns to IfaceTyCon. Furthermore, we force the thunk introduced by mkIfaceTyCon right after deserialising.

Edited by Hannes Siebenhandl

Merge request reports