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'.