adamantium icon indicating copy to clipboard operation
adamantium copied to clipboard

Garbage Collection?

Open ptarjan opened this issue 7 years ago • 0 comments

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)

ptarjan avatar May 20 '17 01:05 ptarjan