@bascule look at the implementation of SimpleDelegator. It’s basically the worst possible way in terms of perf. https://github.com/ruby/ruby/blob/trunk/lib/delegate.rb#L66-76 …
-
-
-
@tenderlove@bascule um, method_missing is not that bad in terms of perf, once cached, and, it doesn't leak method objects... -
-
@tenderlove@bascule but i'm really referring to the fact that simple delegator used to leak like a goddamn sieve -
-
@tenderlove@raggi unfortunately fast Ruby proxies are still too hard. Needs@headius's vaporware MethodHandle toolkit ;) -
@bascule@tenderlove@raggi I could also reimpl delegate.rb with invokedynamic; you'd essentially get free delegation. -
@headius@bascule@tenderlove def_delegators too please <3 - 2 more replies
New conversation -
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.