Subj : Re: Fwd: Rhino, Changes to JavaMembers.java To : netscape.public.mozilla.jseng From : Igor Bukanov Date : Sat Feb 26 2005 01:43 am Attila Szegedi wrote: .... > I'd say it's worth a RFE in Bugzilla if the original poster really > wants it :-) Changing getds would not improve performance of for-in loops since to follow ECMAScript standard Rhino has to convert indexes to strings. ECMAScript requires that: var array = [1]; var type; for (var i in array) { type = typeof i; } would set type to "string", see ECMA-262 v3, 12.6.4. Theoretically it should be possible to optimize many common cases to avoid that string creation but that is not trivial at all. And given that string conversion changing getIds would not help at all. Regards, Igor .