I’m not familiar with Scala’s macro system, but it seems like a big takeaway here is: Be careful with code that invokes the compiler (JIT) at runtime. That seems like it’s asking for trouble.
replies(1):
The problem was overly-frequent inlining generating enormous expressions, causing a lot JIT phase and slow execution.
Doing so is a feature of high-end VM runtimes like the state of the art JVMs or JS runtimes.