develooper Front page | perl.perl5.porters | Postings from February 2015

Re: OP_SIGNATURE

Thread Previous | Thread Next
From:
Steffen Mueller
Date:
February 22, 2015 21:24
Subject:
Re: OP_SIGNATURE
Message ID:
54EA490F.2000902@cpan.org
Dave,

On 02/22/2015 09:49 PM, Dave Mitchell wrote:
> The branch smoke-me/davem/op_signature, currently being smoked, adds
> a new op, OP_SIGNATURE to the core. The principal purpose of this
> op is to handle (most of) the work of assigning args to params on
> signature subs (e.g. sub foo ($a, $b, $c = 1) {...}).
> Currently this process is done by lots of individual ops, and is very
> slow. The OP_SIGNATURE op uses an op_aux array similarly to OP_MULTIDEREF,
> containing lists of actions plus simple default arguments (currently
> 0, 1, an IV, a const SV, a pad var, or a package var). More complex
> defaults are left as sequences of ops after the OP_SIGNATURE.
>
> This changes signatured subs from being very slow to being even faster
> than traditional subs.

thank you very, very much for your hard and tireless work!

--Steffen

Thread Previous | Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About