Beefy Boxes and Bandwidth Generously Provided by pair Networks
"be consistent"
 
PerlMonks  

Re^9: How to identify the package of a subroutine given only a reference to it

by hv (Prior)
on Feb 19, 2022 at 13:37 UTC ( [id://11141489]=note: print w/replies, xml ) Need Help??


in reply to Re^8: How to identify the package of a subroutine given only a reference to it
in thread How to identify the package of a subroutine given only a reference to it

My machine is running Ubuntu 18.04, but I would expect the OS to make little difference to such figures: the build options for perl would be far more important. For my 5.34 the relevant ones are -Dcc=gcc-9 -Doptimize="-g -O6" -Duse64bitall. In particular it would not surprise me if a -DDEBUGGING build slowed down operations on blessed coderefs relative to unblessed ones.

Replies are listed 'Best First'.
Re^10: How to identify the package of a subroutine given only a reference to it
by drclaw (Acolyte) on Feb 20, 2022 at 00:15 UTC
    Interesting. The macports perl 5.34 install I'm using has optimize='-O3'. On my Debian virtual machine with perlbrew perl 5.34 I have optimise='-O2'. I'll dig a little deeper/learn about more when I get a chance.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others drinking their drinks and smoking their pipes about the Monastery: (1)
As of 2024-04-19 00:14 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found