This PR will do one thing: Replace all instances of #Hash.reject { |_k, v | v.nil? } with #Hash.compact.
This has been shown (chef/chef#10601) to increase speed by a reasonable amount and is a bit more simple (IMHO).
Tested this locally with Chef Solo and -- with a sample size of 4x runs -- our run_list went from an average run time of 30s (using .reject) to 24s (using .compact).
This PR will do one thing: Replace all instances of #Hash.reject { |_k, v | v.nil? } with #Hash.compact.
This has been shown (chef/chef#10601) to increase speed by a reasonable amount and is a bit more simple (IMHO).
Tested this locally with Chef Solo and -- with a sample size of 4x runs -- our run_list went from an average run time of 30s (using .reject) to 24s (using .compact).