Branch: refs/heads/blead Home: https://github.com/Perl/perl5 Commit: 36465618a97ff98cd9b64fa50ebaee12fac5da31 https://github.com/Perl/perl5/commit/36465618a97ff98cd9b64fa50ebaee12fac5da31 Author: Paul "LeoNerd" Evans <leon...@leonerd.org.uk> Date: 2024-11-06 (Wed, 06 Nov 2024)
Changed paths: M op.c Log Message: ----------- op.c: Rename 'iterflags' to 'enteriterflags' because it relates to the OP_ENTERITER and not OP_ITER Commit: a8394b4e8cb3545141487cc9f17c08f312ec635c https://github.com/Perl/perl5/commit/a8394b4e8cb3545141487cc9f17c08f312ec635c Author: Paul "LeoNerd" Evans <leon...@leonerd.org.uk> Date: 2024-11-06 (Wed, 06 Nov 2024) Changed paths: M builtin.c M embed.fnc M embed.h M lib/B/Deparse.pm M lib/B/Deparse.t M lib/B/Op_private.pm M lib/builtin.t M op.c M opcode.h M pod/perldelta.pod M pp_hot.c M proto.h M regen/op_private M t/perf/opcount.t Log Message: ----------- Optimise foreach on a list from builtin::indexed @array into two lexicals Rather than generating an entire temporary list that is twice as big as the original array, instead set a flag on the `OP_ITER` that tells it to set one of the iteration variables to the current array index and use the same `CXt_LOOP_ARY` optimisation that regular foreach over an array would use. Compare: https://github.com/Perl/perl5/compare/fa7d9e98975e...a8394b4e8cb3 To unsubscribe from these emails, change your notification settings at https://github.com/Perl/perl5/settings/notifications