Beefy Boxes and Bandwidth Generously Provided by pair Networks
There's more than one way to do things
 
PerlMonks  

Re^2: Benchmark: Constant List in Hash Slice

by LanX (Saint)
on Mar 13, 2019 at 17:38 UTC ( [id://1231232]=note: print w/replies, xml ) Need Help??


in reply to Re: Benchmark: Constant List in Hash Slice
in thread Benchmark: Constant List in Hash Slice

OK I thought the inlining of the constant list might happen early enough to trigger this pre-computation.

But the optimizer doesn't see the inlined keys as literal strings, so it has to calculate this lookup-index dynamically at run-time.

Cheers Rolf
(addicted to the Perl Programming Language :)
Wikisyntax for the Monastery FootballPerl is like chess, only without the dice

  • Comment on Re^2: Benchmark: Constant List in Hash Slice

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others having a coffee break in the Monastery: (9)
As of 2024-04-19 08:49 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found