develooper Front page | perl.perl5.porters | Postings from June 2021

Re: RFC 0004 - defer {} syntax

Thread Previous | Thread Next
From:
Tom Molesworth via perl5-porters
Date:
June 21, 2021 00:24
Subject:
Re: RFC 0004 - defer {} syntax
Message ID:
CAGXhHdm+=zqm3u0w6oJtgH-MYQud=6bSrYHpvdg-UDH5SHJntw@mail.gmail.com
On Mon, 21 Jun 2021 at 07:55, Yuki Kimoto <kimoto.yuki@gmail.com> wrote:

> How much does defer block affect current performance of Perl?
>

The module is available on CPAN:

https://metacpan.org/pod/Syntax::Keyword::Defer

so this would be the best place to start if there are specific benchmarks
you would like to try.

Addition of the keyword should have no measurable impact on existing code.

Performance is generally faster than the equivalent
create-instance-and-hook-DESTROY functionality provided by modules such as
Scope::Guard.

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