BUG: LinqPad5 is unresponsive or has slow UI and intellisense for large queries
I often use LinqPad as a text processor, where I have a method that returns a large set of data, for example:
void Main()
{
GetWords().Dump();
}
// Define other methods and classes here
private List<string> GetWords() {
var list = new List<string>();
list.Add("&c");
list.Add("'d");
list.Add("'em");
// ... x 500 more lines
return list;
}
In LinqPad4 this is fine. In LinqPad5, with the regular or "any CPU" install, this bogs down or becomes permanently unresponsive.
Here is an example query, though I have experienced a slowdown in typing and intellisense with as few as 200 lines.
https://www.dropbox.com/s/s3nfq1y3po90djy/High%20line%20count%202.linq?dl=0
Again, works fine in LinqPad4, hangs in LinqPad5.
-
Rob commented
Same here. Intellisense is insanely slow and continues to override and autocomplete when I want to put something else in. Typing speed itself is slow and I've checked everything from the system key repeat speed to any other system conflicts. 512GB SSD I7 32GB RAM. This should not be slower than Visual Studio.
-
Alan Hemmings commented
I've not used linqpad for a while, ... i've noted over the last few months that occasionally when I have to do something in Linqpad that it's become so unresponsive that it's really no longer worth using linqpad. It takes up to 5 seconds for something to happen when you click things, any things, opening a script, switching between tabs, running a hello world with Console.Write("hello"), you name it, it's around 5 seconds.
I just assumed it was a known bug and some automatic update would fix it, but no such luck.
I'm on version 5.26.1 commercial paid licence. -
Richard Diamond commented
UI blocking issue persists in v5.08.01(AnyCPU). After pasting in a new list.Add(... line to the example query, there is a 5-second delay before I can move the cursor to another part of the query.
Removed unneeded references and imports, so there are no additional namespaces involved. No change in behavior.
Didn't realize there was a separate forum for bugs. I will report future issues over there. Thanks.
-
The 5.07.06 beta fixes this problem (at least to the point where LINQPad will no longer hang). Autocompletion is likely to lag, though, with queries of this size.
-
Joris Talma commented
As this board is aiming at "LINQPad Feature Suggestions", you'd probably better post this on the LINQPad forum: http://forum.linqpad.net/
LINQPad 4 and LINQPad5 behave the same on my machine (a tiny delay when inserting lines, but no unresponsiveness), could you check whether the issue is related to the referenced RMDEnterpriseLibrary.dll sitting on a network drive?
If you copy the referenced file to the local hard drive and reference it from there, does that make any difference?
Also this problem seems related:
http://forum.linqpad.net/discussion/416/slow-intellisense-with-large-extension-method-namespaces