Closed bloodyowl closed 4 years ago
Do you know how much memory is consumed? Is it starved by the usage of CPU or memory
It's definitely CPU. If I change bsconfig.json
, vscode becomes basically unusable for the 5 and a half seconds it takes to rebuild everything. I do run a watch process separately to vscode, though, so it's possible there are two copies of bucklescript fighting for CPU (even though I have autoRebuild
off).
Not relevant to ninja, I found this is a general issue with vscode -- when I run a task in vscode integrated terminal, if it's resource consuming, the editor will get frozen
I run bsb
outside of vscode and it still happens - I guess vscode is busy re-indexing files and chewing up the main thread. The rebuild is slightly slower with vscode running.
Same here, I always run bsb
from Terminal.app
hi @bloodyowl you can use some command line args like this: bsb -- -j 1
, let me know if it would work
let me know if the flags mentioned above does not work for you
On a MacBook, the process sometimes freezes other apps.
bstracing shows 6 parallel processes, and the CPU on my machine has 2 cores and 4 threads.