High memory usage by LINQPad, intellisense to blame?
I'm trying to prototype a webapi built on asp.net core and entity framework core and will eventually add graphql.
For some background, the database context consists of 250+ entities and I think it's causing issues for anything that has code completion. I haven't tried developing the context through Visual Studio yet, just Visual Studio Code. And with that project, typing is agonizing since the .net host is running at 100% CPU for every keypress. I switched back to using omnisharp and it's running a little better at least.
With the context completed, I added a reference to the assembly and am building out the script. Before I added the reference, I was able to develop it normally. However once I added the reference and implemented some endpoints and queries, I'm finding it getting sluggish the longer I have the query open. I saw memory usage reach over 6GB at one point and killed a lot or processes (I only have 16GB on my dev machine).
Forcing garbage collection shaves a couple hundred MB. Only closing the query completely frees all the memory and it's back to normal levels. And this happens without even running the query and just modifying the script. It starts out fine when I initially open the script and do nothing. Only until I start making changes to the file, memory usage grows at an alarming rate. The script itself is only 300 or so lines long and is just a standard asp.net core app. Can this be reviewed?
LINQPad Beta 7.8.6
.NET SDK 7.0.401