Super slow compilation and IntelliJ freezing after creating around 1500 Kotlin files (with code generation) 🧵
Daniel Pitts
06/29/2024, 5:06 AM
I'm working on a code generator that makes kotlin bindings for the Vulkan API (sort of, it create kotlin extension on top of LWJGL's Vulkan bindings for Java).
Daniel Pitts
06/29/2024, 5:07 AM
I'm creating quite a few files, around 1500 files. Some are classes, a lot are just files with extension methods/properties for existing Java classes.
Daniel Pitts
06/29/2024, 5:09 AM
It seems to really slow down things when I add more extension methods and properties.
I'm wondering if the style of code I'm creating is just slower to compile, or if its just a function of the amount of code.
Daniel Pitts
06/30/2024, 4:14 AM
Well, it appears that simply having so many extension methods in the same package was what slowed things down. When I moved them into data objects for namespacing purposes, it sped up the IDE a lot.