[chef] Re: Why is knife --help so slow??


Chronological Thread 
  • From: Noah Kantrowitz < >
  • To:
  • Subject: [chef] Re: Why is knife --help so slow??
  • Date: Wed, 9 Oct 2013 13:55:56 -0700

It has to process every gem on the system looking for knife plugins. If you 
strace it, you'll see a crazy number of stats and similar calls.

--Noah

On Oct 9, 2013, at 1:53 PM, DV 
< >
 wrote:

> Hey all,
> 
> I have a bash_completion script that calls "knife --help" to get a list of 
> suggestions. The script works great, but each call costs about 2 seconds 
> due to "knife --help" taking this long.
> 
> Any ideas why it's so slow? It isn't doing anything, just outputting help 
> info. Should take under a millisecond, right?
> 
> $ time knife node --help >/dev/null 2>&1
> 
> real    0m0.878s
> user    0m0.776s
> sys     0m0.100s
> 
> -- 
> Best regards, Dmitriy V.

Attachment: signature.asc
Description: Message signed with OpenPGP using GPGMail




Archive powered by MHonArc 2.6.16.

§