Is there anything particular that drives up the kotlin compiler memory usage that one should look out for?
I am generating code using Kotlinpoet and I am struggling with very high memory usage during compilation (I had the similar problem in an earlier project with 1.3.x, but back then it was enough to just give it more memory -- now that doesn't solve it due to a higher number of classes). The code generated is not deep (so no big nested if-s or anything, but 3 methods, a number of static variabled defined in the companion object. I guess the most risky might be a data class that has about 20000 different uses. It is currently just over 600 such classes, and they are in the same package -- would splitting up the packages help?