I have a pipelines build running, and all it does is `docker build`. Inside the `Dockerfile` of that build, it is compiling a C++ library to store the final output binaries in the image for usage later. However, the C++ build is extremely slow. About 12 minutes have gone by and it only compiled 1 file. This is eating up the precious minutes I pay for. Why is this so slow?
After poking around a bit, I think it has to do with how many processes are simultaneously compiling translation units during the docker build. Basically you have to do `make -j4` to limit it. 4 works, 8 threads hangs it.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.