Beefy Boxes and Bandwidth Generously Provided by pair Networks
good chemistry is complicated,
and a little bit messy -LW
 
PerlMonks  

Re: Benchmark: Constant List in Hash Slice

by hdb (Monsignor)
on Mar 13, 2019 at 12:29 UTC ( #1231224=note: print w/replies, xml ) Need Help??


in reply to Benchmark: Constant List in Hash Slice

Your test, retrieving the full hash as a slice, looks strange to me. I think it is more meaningful to retrieve a few elements from a large hash, say 1% or 0.1% of the keys.

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

Replies are listed 'Best First'.
Re^2: Benchmark: Constant List in Hash Slice
by LanX (Cardinal) on Mar 13, 2019 at 13:13 UTC
    The requirement in this case is to sort according to an array not cutting out a subset.

    Update

    And yes I know that using an array combined with enum constant indices are faster, but my concern here is about the strange side effect from inlining a constant list.

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

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others about the Monastery: (2)
As of 2021-04-20 01:27 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?