Slow hammer startup times (1.3+ seconds)
Cloned from https://bugzilla.redhat.com/show_bug.cgi?id=1122810
Description of problem:
When running "hammer --help", it's taking in excess of 1.3 seconds. This makes it inefficient for use in a shell script, particularly when needing to retrieve IDs or run checks in other commands.
Version-Release number of selected component (if applicable):
Steps to Reproduce:
1. time hammer --help
= 1.3 seconds
< 0.5 seconds?
#5 Updated by Tomáš Strachota almost 6 years ago
Most time consuming turned out to be command and option definition that takes place at class level. Lazy loading of subcommands strips most of the unnecessary requires.
My measurements showed times slightly <0.5s for hammer -h (or around 0.8 when running in bundler).
#6 Updated by Anonymous almost 6 years ago
- Status changed from Ready For Testing to Closed
- % Done changed from 0 to 100
Applied in changeset hammer-cli-foreman|4fbd36b414aaf030e9dfda79fe4ccdd304d9faa7.