chef / ohai

Ohai profiles your system and emits JSON
https://docs.chef.io/ohai.html
Apache License 2.0
681 stars 452 forks source link

Calling yajl parser only once #1786

Closed rnt closed 1 year ago

rnt commented 1 year ago

In some plugins, YAJL parser is called twice. That's really inefficient.

Description

We definitely shouldn't fire off the YAJL parser twice if we don't need to.

Originally posted by @jaymzh in https://github.com/chef/ohai/pull/1780#pullrequestreview-1288003393

Related Issue

Add cloud provider oci #1780

Types of changes

Checklist:

sonarcloud[bot] commented 1 year ago

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

No Coverage information No Coverage information
0.0% 0.0% Duplication