Slight memory reduction #57

Merged
merged 2 commits into from Oct 3, 2016

Conversation

Projects
None yet
2 participants
@AaronLasseigne
Contributor

AaronLasseigne commented Sep 21, 2016

closes #54

Doing a basic get showed a slight reduction in objects created.

Using:

require 'rubygems'
require 'memory_profiler'
require 'tzinfo'

MemoryProfiler.report(ignore_files: 'rubygems') {
  TZInfo::Timezone.get('America/New_York')
}.pretty_print

Before:

allocated memory by gem
-----------------------------------
   1294730  tzinfo
        40  concurrent-ruby-1.0.2
        40  other

After:

allocated memory by gem
-----------------------------------
   1225130  tzinfo
        40  concurrent-ruby-1.0.2
        40  other

5.38% lower memory usage

AaronLasseigne added some commits Sep 21, 2016

@philr philr merged commit ba72d8e into tzinfo:master Oct 3, 2016

1 check passed

continuous-integration/travis-ci/pr The Travis CI build passed
Details
@philr

This comment has been minimized.

Show comment
Hide comment
@philr

philr Oct 3, 2016

Member

Thank you for submitting this pull request. I've merged it into master.

Member

philr commented Oct 3, 2016

Thank you for submitting this pull request. I've merged it into master.

@philr philr referenced this pull request Oct 3, 2016

Closed

High memory consumption #54

@AaronLasseigne AaronLasseigne deleted the AaronLasseigne:slight-memory-reduction branch Oct 4, 2016

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment