I wonder if and how the new compiler front-end wil...
# compiler
m
I wonder if and how the new compiler front-end will affect performance of compiling DSLs? The more DSL I use in my project the more sluggish compiling and the IDE seem to become.
2
c
how does your dsl look like? Idea has had huge performance problems with kotlin code that contains a lot of lambdas, but it has hugely improved in the last year.
m
Plenty of lambdas and quite some builder inference. It did improve somewhat over time but it's still hindering day to day work.
y
I think the FIR would absolutely help you out here. However, if you do find that there's still performance issues, reporting those on YouTrack would hopefully help a lot. Alternatively, you can also try to then create some advanced FIR plugin to make analysis faster if you want
f
Alternatively, you can also try to then create some advanced FIR plugin to make analysis faster if you want
And only benefit a handful of users? Any performance improvement, or anything that benefits all users objectively, needs to be comitted to the actual master kotlin compiler.
y
As in, for your own specific usecase. Sometimes some optimisations might only apply to a specific syntax combinations that maybe would be too expensive for normal Kotlin to include, but in a hyper-specific use case it can be useful to optimise. I'm just saying that, if all goes wrong, you still have the fallback of rolling out your own in-house optimisation
👍 1