Closed mperham closed 2 months ago
As an example, derailed shows that 100% of the allocated memory from this gem is due directly to requiring YAML.
os: 0.6875 MiB
yaml: 0.6875 MiB
psych: 0.6875 MiB
I want to fix this, PR welcome as well :)
This gem only needs
yaml
for theOS.report
method. Most users aren't using this method. Could you move therequire "yaml"
line inside the report method so the gem boots much faster?https://github.com/rdp/os/blob/9ee80f9ec0f59ecc731ecdc7c2a8f88180e385f5/lib/os.rb#L3