in reply to Re: Proxying (almost) all methods in a class for mass memoization
in thread Proxying (almost) all methods in a class for mass memoization
And sub calls are slightly optimized if you leave [return] out.
That's a surprising twist. I would have imagined that such a thing would have been easily optimised away at compilation. I'm going to have to start benchmarking frequently-called, tiny subs to see what sort of difference this makes. Thanks (I think)!
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: Proxying (almost) all methods in a class for mass memoization
by choroba (Cardinal) on Aug 16, 2018 at 10:01 UTC | |
by davido (Cardinal) on Aug 16, 2018 at 20:24 UTC | |
by tobyink (Canon) on Aug 16, 2018 at 11:44 UTC |