matthewrudy / memoist

ActiveSupport::Memoizable with a few enhancements
MIT License
920 stars 99 forks source link

Avoid extra string allocation on memoized method call #70

Open tarmo opened 7 years ago

tarmo commented 7 years ago

This makes all arguments to instance_variable_defined? and method inside the dynamically generated methods be symbols so there wouldn't be any strings allocated per method call.