Compiling files with many function heads is very slow(OTP 26 issue?)

Thread too long to parse in the early morning but I remember solving issues with lots of function heads by switching to a case statement.

so instead of


def funct(:a), do: bla
def funct(:b), do: hum

It’s now

def funct(arg1)
case arg1 do
  :a → bla
  :b → hum
end
end