Beefy Boxes and Bandwidth Generously Provided by pair Networks
Pathologically Eclectic Rubbish Lister
 
PerlMonks  

Re^3: Do multiple calls to 'use X' abuse the compiler?

by ikegami (Patriarch)
on Mar 02, 2008 at 03:17 UTC ( [id://671458]=note: print w/replies, xml ) Need Help??


in reply to Re^2: Do multiple calls to 'use X' abuse the compiler?
in thread Do multiple calls to 'use X' abuse the compiler?

The real answer is that every use() past the first is only a hash lookup

I said use Module qw( ); is just a hash lookup, but use Module; isn't. Are you contradicting that?

you ought to already know if you care about the overhead of each

How? I heard import can be fairly costly. But to know for sure, one would been benchmark it.

And whether or not he ought to know is not important. He asked so I answered.

Replies are listed 'Best First'.
Re^4: Do multiple calls to 'use X' abuse the compiler?
by diotalevi (Canon) on May 01, 2008 at 15:42 UTC

    ->import is frequently extremely cheap especially when it is just Exporter's. Modules are of course free to write their own import and may gmake them as expensive as they wish.

    ⠤⠤ ⠙⠊⠕⠞⠁⠇⠑⠧⠊

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others making s'mores by the fire in the courtyard of the Monastery: (3)
As of 2024-04-25 22:16 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found