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

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 (Saint) 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.


    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?

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

How do I use this?Last hourOther CB clients
Other Users?
Others contemplating the Monastery: (4)
As of 2023-11-30 07:50 GMT
Find Nodes?
    Voting Booth?

    No recent polls found