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
-
John-David Dalton June 27th, 2008 @ 05:21 PM
- → State changed from new to enhancement
- → Tag changed from to needs_benchmarks
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.
