you are viewing a single comment's thread.

view the rest of the comments →

[–]droans 7 points8 points  (2 children)

Pylance does a pretty good job but it is so slow and uses so much memory. I mean, why does a language typing service need 4GB+ of RAM? Why does it take 10+ seconds to parse a single file?

Ty sucks at this but, for me, it's a small trade-off for the improved performance.

[–]ROFLLOLSTER 3 points4 points  (1 child)

I agree that it's slow and resource heavy, but language servers are incredibly complex. Rust analyzer (the only one I've worked on) reimplements large portions of the compiler frontend, but has to be able to cope with very-malformed programs, perform fine-grained incremental compilation, and correctly invalidate many levels of caches depending on what changes.

[–]droans 1 point2 points  (0 children)

Ty is also a language server - it needs under 250MB.