Bug #7530
closedSpeed up katello-installer --help
Description
Cloned from https://bugzilla.redhat.com/show_bug.cgi?id=1142996
# time katello-installer --help
<snip>
real 1m27.999s
user 0m16.075s
sys 0m0.998s
System is a virtual machine with 12G ram and 4 CPUs. Rather modern hardware. Running --help on an installer should not take 1.5 minutes. Expected time would be <5 sec (tops).
Updated by Dominic Cleal over 10 years ago
I've personally never seen it that slow, but it certainly feels sluggish as the number of modules has increased. Perhaps it needs some build-time caching? (If the speed can't be improved any other way.)
Updated by Marek Hulán over 10 years ago
we could possibly list manifests that contains information printed in help and keep their hashes and regenerate help only if they change
Updated by Lukas Zapletal over 10 years ago
I think we can do similar what Apipie does - find the latest ctime on all the modules (there is no big benefit in fine-selecting only those relevant) and compare to the ctime of the cache file. This should be relatively fast (<1s the first run).
Updated by Dominic Cleal over 8 years ago
- Is duplicate of Feature #14447: Add serialised cache of parsed manifests added
Updated by Dominic Cleal over 8 years ago
- Status changed from New to Resolved
Likely that using #14447 would help.