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


Thread Previous | Thread Next
Steffen Mueller
February 22, 2015 21:24
Message ID:

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!


Thread Previous | Thread Next Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at | Group listing | About