Autocompletion extremely slow

cwain
edited December 12 in General

Autocompletion is extremely slow - to the point where using LinqPad is becoming a problem.

For example, typing a simple EFCore linq-statement like: ctx.MyDbSet.Where( ... LinqPad halts and blocks everything for 2-3 seconds after each .

Another example is typing string. which again blocks everything for 2-3 seconds after the .

I know that I am referencing quite a few assemblies and this is most likely the main reason, as a clean script with no references doesn't experience the problem, but there is no easy way for me around referencing this large'ish collection of assemblies.

It was not a big problem for me up until LinqPad 8 which started to have have noticeable slowdowns. It has continued with LinqPad 9 which is almost unusable for me - just try to imaging everything halts for 2-3 seconds every 5-10 keypresses.

I have already excluded practically everything in my Antivirus solution.

VS 2022 does not show similar problems, so it must be possible.

One solution could perhaps be if it was possible to forcefully exclude loading a list of assemblies.

Is there a known solution for this issue?

Comments

  • Are you able to isolate it to a particular assembly? And if so, is there anything special about that assembly, such as containing an unusually large number of types, or a type with an unusually large number of members?

    If you can provide a formula to reproduce the problem, it's very likely that it can be fixed.