inspec/lib
Ryan Davis ad6ffcccd6 Switch Service#select_service_mgmt from huge if statement to case.
Having a ton of conditions with `%w{one-string}.include?(platform)` is
incredibly wasteful and slow. Apparently about 17x slower:

```
Calculating -------------------------------------
          include_eh    529.315k (± 3.2%) i/s -      2.675M in   5.058296s
       include_or_eq    909.795k (± 1.5%) i/s -      4.568M in   5.022491s
           case_when      9.043M (± 2.8%) i/s -     45.443M in   5.029499s

Comparison:
           case_when:  9042590.3 i/s
       include_or_eq:   909795.2 i/s - 9.94x  slower
          include_eh:   529315.0 i/s - 17.08x  slower
```

Signed-off-by: Ryan Davis <zenspider@chef.io>
2020-01-23 16:36:36 -08:00
..
bundles Singularize the fetchers directory name 2019-11-22 09:57:28 -05:00
inspec Switch Service#select_service_mgmt from huge if statement to case. 2020-01-23 16:36:36 -08:00
matchers Address and fix all our ruby 2.7 warnings & errors. 2019-11-27 15:42:52 -08:00
plugins Found and fixed more mocha/setup deprecations. 2019-12-31 15:46:47 -08:00
resource_support Switched chefstyle back to Layout/AlignArguments=with_first_argument. 2019-11-08 12:57:43 -08:00
resources Switched chefstyle back to Layout/AlignArguments=with_first_argument. 2019-11-08 12:57:43 -08:00
source_readers Hrm, linting for upstream? 2019-08-19 13:52:28 -04:00
inspec.rb Make inspec much faster for most commands. 2019-09-04 15:44:26 -07:00