http://www.perlmonks.org?node_id=607540


in reply to Re^2: *IN* Operator for the Perl wish list
in thread *IN* Operator for the Perl wish list

I haven't benchmarked it, but I suspect first has significantly more overhead, so might only be of benefit for long lists. I'd be interested in seeing a benchmark.

Update: yes, I mean even the XS version

  • Comment on Re^3: *IN* Operator for the Perl wish list

Replies are listed 'Best First'.
Re^4: *IN* Operator for the Perl wish list
by educated_foo (Vicar) on Mar 30, 2007 at 17:40 UTC
    Not necessarily -- List::Util has XS versions of all its functions.