adzap / timeliness

Fast date/time parsing for the control freak.
http://github.com/adzap/timeliness
MIT License
224 stars 28 forks source link

High memory, without any usage at all #34

Closed envygeeks closed 5 years ago

envygeeks commented 5 years ago

Your gem boots using 259MB of memory, just by loading: 2592812 timeliness-0.4.0

envygeeks commented 5 years ago
2459926  vendor/bundle/ruby/2.5.0/gems/timeliness-0.4.0/lib/timeliness/format.rb
envygeeks commented 5 years ago
1774034  vendor/bundle/ruby/2.5.0/gems/timeliness-0.4.0/lib/timeliness/format.rb:22
adzap commented 5 years ago

I presume you are using thememory_profiler gem, which means I think you've interpreted the output wrong. I think that is 2.59MB.

You can add scale_bytes: true to convert output to units.