At some point, if you keep adding programs to the same
openrndr-template things will start to get slow in IntelliJ Idea. I have now 84 programs and 114 kotlin files and it’s quite noticeable.
I figured out a solution.
I was throwing all my programs into a package called
apps. What I did:
- Add a second package where to store active programs. You could call the old package
archivedand the new one
- Go to
File > Project Structure > Modules > main > Sources.
- Right click on the package to deactivate (
appsin my case).
- Flag it as
That’s it. Idea will no longer look into this folder, making everything fast again. In my case it compiles faster and autocomplete is much faster too.
Note: you can move programs back and forth between both folders. Move a program into
current to work on it again, throw it into
archive if you’re done for now.
What do you think about this approach? Do you know better ways to improve performance on growing collections of programs? I could clone the
openrndr-template template again and start from scratch, but I want to have access to all the helpers and classes I’ve built so far (my packages called