Stream: helpdesk (published)

Topic: Overparameterizing abstract types


view this post on Zulip Kevin Carlson (Jun 28 2023 at 20:59):

I was just refactoring something like struct A{S,T,U,V,W} into abstract type A{S,T,U,V,W} and struct A'{S,T,U,V,W}. This made compilation time for my first construction of an A something like ten times slower until I realized that abstract type A{S,T} was good enough, which completely fixed the performance issue. Can anybody explain why this might happen at this level of abstraction, or would I need to get more specific?


Last updated: Nov 06 2024 at 04:40 UTC