I'm creating a patch for a bug in bitcoind code, and I'm compiling bitcoind on a Ubuntu virtual machine with 1 GB of RAM and 1 core.
What can I do to speed up compilation?
Will adding an additional core decrease compilation time? Does it benefit from "make -j 2"?
Will adding more RAM decrease it?
Best regards,
Sergio.
More ram will likely help (actually, I'm somewhat surprised that you're able to compile it with 1GB ram, I assume you have swap too). Yes, it will benefit from -j2 if your VM has multiple cores. Also make sure you have ccache installed... that will speed up subsequent compilations.