Stream: helpdesk (published)

Topic: Overparameterizing abstract types


view this post on Zulip Kevin Arlin (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: Oct 02 2023 at 04:34 UTC