Larreco taking a very long time to build after small change
We're finding larreco to be taking an incredibly long time to build after just minor changes.
Tested by including, or commenting out, a single cout statement in RecoAlg/CCHitRefiner.cxx. Timing done via unix 'time' command, on uboonegpvm02.
SRT: 'time make':
mrb: 'time mrb i -j4':
In particular, it's shocking how long the initial "stage cmake" takes, but even removing that the build itself takes a significantly longer amount of time, and after the build it looks like it 'builds' again before doing the install (checking the build?).
#1 Updated by Erica Snider about 6 years ago
- Status changed from New to Feedback
- Assignee set to Erica Snider
I learned a new recipe you should try. If (a) you've already run 'mrb b' or 'mbr i' in a particular working area, and (b) you have run the setup and 'source mrb setEnv' during this login session (and not done anything to mess that up), then after modifying code under srcs, you can just cd into the build directory and type 'make'. Sounds like it should solve at least some of the problem.
Can you please try that and let me know what you find?
#3 Updated by Lynn Garren about 6 years ago
There are 3 make targets:
make (no explicit target, just does the build)
make test (moot since none of the larsoft packages have unit tests)
make install (does the build and install)
Also an important consideration is that if you add or remove a file to the source code tree, you will need to rerun cmake with either mrb b or mrb i.
#5 Updated by Erica Snider about 6 years ago
- Status changed from Feedback to Resolved
I am assuming this issue is resolved for the moment, which is not to say that we should stop looking for ways to make everything run faster. We will of course continue to do that.
If you want me to keep this open, please let me know and we can discuss how to proceed. Otherwise, I will close this issue.