[chef] Re: Re: Re: Re: knife command very slow


Chronological Thread 
  • From: Cassiano Leal < >
  • To: < >, Teemu Matilainen < >
  • Cc:
  • Subject: [chef] Re: Re: Re: Re: knife command very slow
  • Date: Fri, 16 Aug 2013 09:48:52 -0300

On August 16, 2013 at 09:35:24, Teemu Matilainen ( ) wrote:
On Thu, Aug 15, 2013 at 11:35 PM, Cassiano Leal < > wrote: 
> 
> After cleaning up, time went down to 0.54s. After installing chefspec, this 
> time doubled. Still acceptable, but I wouldn’t expect that this gem would 
> increase the time. knife-ec2 increases about .02s to the run time. 

I'm quite sure the slowness is because of knife subcommand loading. It 
crawl through files in all gems while trying to find knife commands. 

Doesn’t sound like the optimal way of dealing with gems. Maybe an actual plugins system would be better? Or some other way of letting knife know about installed commands?

Using Bundler to isolate loaded gems should indeed help. 

-- 
Cheers, 
- Teemu 

--
Cassiano Leal
http://cassianoleal.com
http://twitter.com/cassianoleal



Archive powered by MHonArc 2.6.16.

§