Did you actually tried it and did it use 4GB of RAM for you? I did and it used about 120 MB of RAM, which is not tiny, but not even in the ballpark of your figure.
I know hating Electron apps is the new fad, but it would be nice to check the facts before you grab your fork.