- More performance improvements (details below).
- Calling
memoize(:value) { ... }
now defines a__value___
method as well as avalue
method.
- The instance version of
memoize
now only checks with the variable is defined ifinstance_variable_get
returns a false value. This yields a modest improvement in performance. - The class version of
memoize
no longer piggy-backs on the instance version. Instead it defines a__value__
method using the provided block, then defines avalue
method usingclass_eval
. This yields a dramatic improvement in performance, making the class version almost as fast as doing it yourself.
Performance improvement.
Stopped using ActiveSupport::Concern
even when available.
Initial release.