Skip to content

Garbage Collection? #37

@ptarjan

Description

@ptarjan

How does your memoize library deal with garbage collection? Will it release the memory if the instance who's method is memoized goes away? What about the parameters?

I tried looking at your code and you have a hash memoized_methods which I can't seem to find the definition of and your project doesn't bundle for me to test locally:

$ bundle
Fetching https://github.com/rom-rb/devtools.git
Fetching https://github.com/mbj/mutant.git
The dependency jruby-openssl (~> 0.9.4) will be unused by any of the platforms Bundler is installing for. Bundler is installing for ruby but the dependency is only for java. To add those platforms to the bundle, run `bundle lock --add-platform java`.
Fetching gem metadata from https://rubygems.org/..........
Fetching version metadata from https://rubygems.org/...
Fetching dependency metadata from https://rubygems.org/..
Resolving dependencies...
Bundler could not find compatible versions for gem "rspec":
  In Gemfile:
    rspec (~> 3.0.0)

    devtools was resolved to 0.1.17, which depends on
      rspec (~> 3.5.0)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions