Beefy Boxes and Bandwidth Generously Provided by pair Networks
P is for Practical
 
PerlMonks  

Re^3: The fastest way of searching a certain element in an array

by Limbic~Region (Chancellor)
on Jan 14, 2005 at 19:38 UTC ( #422361=note: print w/ replies, xml ) Need Help??


in reply to Re: Re: The fastest way of searching a certain element in an array
in thread The fastest way of searching a certain element in an array

ccn,
Here is it's code:

Well that depends. As I indicated in Getting Matching Items From An Array, List::Util falls back to pure perl (which has obvious inefficiencies) only if the XS version is unavailable. Which version of 'first' did you use in your benchmarks?

Cheers - L~R


Comment on Re^3: The fastest way of searching a certain element in an array
Replies are listed 'Best First'.
Re^4: The fastest way of searching a certain element in an array
by ccn (Vicar) on Jan 15, 2005 at 12:25 UTC

    I benchmarked 'first' with XS loaded. To make shure that XS was loaded I've inserted some alerting printouts in pure perl version of the 'first'.

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others making s'mores by the fire in the courtyard of the Monastery: (10)
As of 2015-07-28 11:08 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (254 votes), past polls