You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
While define_method indeed defines methods slighly faster than module_eval, I think it should be noted that calling methods defined with define_method is slower than calling module_eval ones (because define_method creates a closure):
While
define_method
indeed defines methods slighly faster thanmodule_eval
, I think it should be noted that calling methods defined withdefine_method
is slower than callingmodule_eval
ones (becausedefine_method
creates a closure):I think you benefit more from a method being faster to call than faster to define.
The text was updated successfully, but these errors were encountered: