X-Git-Url: https://git.tokkee.org/?a=blobdiff_plain;f=INSTALL;h=58b2b86ccf93d045d4c406fe422e94db75533607;hb=498a04af143f55a7bbbba484d48a7f123d43be04;hp=6fa83fe2b85f2611fc0253a90b7b238bf74745b7;hpb=4daf6fc837f7cc84335958b9d9e8a29e41b4ee8e;p=git.git diff --git a/INSTALL b/INSTALL index 6fa83fe2b..58b2b86cc 100644 --- a/INSTALL +++ b/INSTALL @@ -28,16 +28,25 @@ set up install paths (via config.mak.autogen), so you can write instead If you're willing to trade off (much) longer build time for a later faster git you can also do a profile feedback build with - $ make profile-all - # make prefix=... install + $ make prefix=/usr PROFILE=BUILD all + # make prefix=/usr PROFILE=BUILD install This will run the complete test suite as training workload and then rebuild git with the generated profile feedback. This results in a git which is a few percent faster on CPU intensive workloads. This may be a good tradeoff for distribution packagers. -Note that the profile feedback build stage currently generates -a lot of additional compiler warnings. +Or if you just want to install a profile-optimized version of git into +your home directory, you could run: + + $ make PROFILE=BUILD install + +As a caveat: a profile-optimized build takes a *lot* longer since the +git tree must be built twice, and in order for the profiling +measurements to work properly, ccache must be disabled and the test +suite has to be run using only a single CPU. In addition, the profile +feedback build stage currently generates a lot of additional compiler +warnings. Issues of note: