RAM is relative cheaper. I would suggest you upgrad your RAM. Otherwise, you will waste a lot of time due to that.
I would rather has less powerful CPU but I want to have more RAM.
A high power CPU with less RAM is similar to a high speed car with small gas tank.
If you need to add gas every 3km, there is no need to have a high powered engine. :-)