-
Notifications
You must be signed in to change notification settings - Fork 805
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Typechecking is sometimes very slow #490
Comments
Looks like fsautocomplete sometimes crashes too. This is the backtrace VS gives when I debug it:
And this is a backtrace that appears in Emacs:
|
Seems related to #343. |
Ah, yes, this is almost certainly the same issue. Regarding @dsyme's comment here, I've seen this same problem with much, much simpler libraries and example cases than FsControl (I was working on a library with a similar goal myself until I found out someone had already done it better than me :)). The performance of the type checker can get pretty abysmal even if you fix all top-level declarations (and any others that fail to be unambiguously inferred) with type signatures, so I'm afraid there really isn't a very good workaround available... |
Closing this as it looks like a dup of 343. @drvink - if you can give a simpler repro than the extensive overloading inn FsControl that would be great, thanks. |
FsControl is a library which makes heavy use of static members on classes and SRTP to enable typeclass-like functionality in F#. Unfortunately, it seems to tickle some pathological case in the F# typechecker, as it often takes minutes to complete. In Emacs with the fsautocomplete process, it usually outright times out, but in Visual Studio the wait is unbounded and you usually end up having to kill VS.
Try editing this file after compiling the library--simply making changes within it should cause VS or the autocompletion process to churn.
The text was updated successfully, but these errors were encountered: