Beefy Boxes and Bandwidth Generously Provided by pair Networks
laziness, impatience, and hubris
 
PerlMonks  

Re^8: Declaring with my, assigning, and testing in same line (attributes)

by LanX (Sage)
on Dec 15, 2015 at 10:23 UTC ( #1150352=note: print w/replies, xml ) Need Help??


in reply to Re^7: Declaring with my, assigning, and testing in same line (attributes)
in thread Declaring with my, assigning, and testing in same line

> are much slower

Did you expect otherwise? :)

That's normally the prize for syntactic sugar...

I wouldn't be surprised if Attribute::Handlers is to be blamed for a big part of the delay.

Using attributes directly might speed up things, but it will still be considerably slower.

But when used in the context of debugging or similar speed wouldn't matter that much.

Cheers Rolf
(addicted to the Perl Programming Language and ☆☆☆☆ :)
Je suis Charlie!

  • Comment on Re^8: Declaring with my, assigning, and testing in same line (attributes)

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://1150352]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others musing on the Monastery: (4)
As of 2023-03-22 13:38 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Which type of climate do you prefer to live in?






    Results (60 votes). Check out past polls.

    Notices?