#193 enhancement
John-David Dalton

Enumerable#include needs benchmarks

Reported by John-David Dalton | June 27th, 2008 @ 05:21 PM | in 1.6.1

Enumerable#include will attempt to use Array#indexOf (native support) which uses strict equality. If a match is not found it re-iterates over the Array using the traditional for-loop and equivalence (==). We should benchmark this to see if there is a better way to deal with this.

Comments and changes to this ticket

Please Login or create a free account to add a new comment.

You can update this ticket by sending an email to from your email client. (help)

Create your profile

Help contribute to this project by taking a few moments to create your personal profile. Create your profile »

The Prototype JavaScript library.

Shared Ticket Bins

People watching this ticket