From 7e2d8e6a1b23cf459becfaaf0525a930bb2bd9e3 Mon Sep 17 00:00:00 2001 From: Tim Smith Date: Wed, 12 Aug 2020 14:16:39 -0700 Subject: Optimize requires for non-omnibus installs require is quite slow in Ruby and doing requires for things you've already required is also slow. We've used this simple hack in Chef to speed up our requires. In the omnibus installs we patch how rubygems works to make this somewhat pointless, but this will help non-omnibus installs Signed-off-by: Tim Smith --- lib/chef_zero/endpoints/acls_endpoint.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/chef_zero/endpoints/acls_endpoint.rb') diff --git a/lib/chef_zero/endpoints/acls_endpoint.rb b/lib/chef_zero/endpoints/acls_endpoint.rb index 2ed5b78..f1932de 100644 --- a/lib/chef_zero/endpoints/acls_endpoint.rb +++ b/lib/chef_zero/endpoints/acls_endpoint.rb @@ -1,4 +1,4 @@ -require "ffi_yajl" +require "ffi_yajl" unless defined?(FFI_Yajl) require_relative "../rest_base" require_relative "../chef_data/data_normalizer" require_relative "../chef_data/acl_path" -- cgit v1.2.1