Summary: GNAT Studio code completion/outline slow when using very large package.
In GNAT Studio when viewing very large files, around 30-40k lines, I incur performance hits. The file size comes from a very large generated binding. I know that I could just separate the package into smaller pieces using ‘separate’, but I don’t want to do this. These bindings get swapped out, overwritten, and deleted all the time. I want to keep any manual interaction with it at a minimum.
Whenever I pull up the outline panel it looks like it reanalyzes the entire file every time I open it without any caching. I believe this is causing the biggest performance hit. Likewise, when I use code completion it feels slow, as I think it also isn’t caching as said above. The code completion for instance when typing ‘vkin[TAB]’ to get ‘vkinstance‘ to appear, gives a calculating popup for a few seconds(8ish) even though it supposedly already analyzed the file when I was looking at its outline a minute before. My computer may just be slow.
Is this something I should make a feature request for on the github repo?
Is my processor just in need of an upgrade?
Or is there a way to set the analysis ‘depth’ to be more shallow?