dragos / dragos-vscode-scala

Other
253 stars 39 forks source link

Min memory for dragos. #93

Open shoorlyne opened 5 years ago

shoorlyne commented 5 years ago

This issue seems to suggest that the total memory required to run a dragos LS is 768MB (by coursier) + ~500MB (dragos) =1.3GB. Is that still the case?

I'd like to use dragos in my project, but our memory is a bit constrained. We can't afford to shell out 1.3GB memory for this feature. The amount of memory we can allocate for a LS is 500MB at the moment.

Do you think it's possible to lower memory consumption for dragos?

Thanks!

dragos commented 5 years ago

Memory requirements come from the underlying engine, ensime. It's been bothering me for a while, but without a heavy rewrite I don't think it's possible. However, if your project is small enough you could just see what happens if you give it only 500M (I think that's on the very small side even for the Scala compiler itself, but you can try)