randy3k / radian

A 21 century R console
MIT License
1.96k stars 73 forks source link

High RAM issue in VSC (Mac OS) #444

Open itsmevictor opened 8 months ago

itsmevictor commented 8 months ago

For starters, my specifications are the following:

My main problem is that of very high RAM usage in VSC linked to Radian.

When running virtually any R code through Radian, the memory usage skyrockets. When exploring VSC's processes, the entry "ptyhost" that has for unique object /Users/victor/miniconda3/bin/python /Users/victor/miniconda3/bin/radian --no-save --no-restore takes pretty much all of it. Reading a parquet file and running a few mutates for instance leads to 8GB memory usage. When exploring the issue in Mac OS activity monitor, it appears that python 3.11 (which, I understand, provides the backend for radian) takes all my laptop's RAM.

Happy to answer any questions and run anything that can help troubleshooting this. Many thanks.

itsmevictor commented 8 months ago

To ease the troubleshooting, let me add that disabling all extensions except the R extension that allows you to run R in VSC does not change anything.