Reduce memory allocations for `StrongMemoize`
Before this change the usage of `strong_memoize` resulted in using 4 gc slots (possibly with 4 mallocs) for each call. Depending on the data type a single memory allocation is enough. This with improved implementation results in 1.66x speedup.
Showing
... | ... | @@ -420,6 +420,7 @@ group :test do |
gem 'fuubar', '~> 2.2.0' | ||
gem 'rspec-retry', '~> 0.6.1' | ||
gem 'rspec_profiling', '~> 0.0.6' | ||
gem 'rspec-benchmark', '~> 0.6.0' | ||
gem 'rspec-parameterized', require: false | ||
gem 'capybara', '~> 3.35.3' | ||
... | ... |
Please register or sign in to comment