Pathological (effectively non-terminating) compilation times of quote-matching multiple types #23317
Labels
area:match-types
area:metaprogramming:quotes
Issues related to quotes and splices
itype:bug
itype:performance
Compiler version
3.7.0
Minimized code
Compilation of the following effectively does not terminate:
macros9.scala
Additional measurements
I created a series of files
macros1.scala
, ...,macros9.scala
, where the last one is above and the first one ismacros1.scala
I then timed the compilation times:
We can see a big jump between
macros6.scala
andmacros7.scala
(11.40s vs 113.75s).Compilation of
macros8.scala
is still running after 25 minutes.The text was updated successfully, but these errors were encountered: