There's more than one way to do things | |
PerlMonks |
Re^2: Benchmark: Constant List in Hash Sliceby LanX (Saint) |
on Mar 13, 2019 at 17:38 UTC ( [id://1231232]=note: print w/replies, xml ) | Need Help?? |
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
In Section
Seekers of Perl Wisdom
|
|