On 11/4/13 10:13 AM, "Maurice Amsellem" <maurice.amsel...@systar.com> wrote:
>Alex, to be honest, the last "split" tests I did ( code optimization only >and code optimization + Array recycling) show that the bulk of the >performance gain (10%) comes from the use of indexOf(..) to detect that >we are in a simple "Number case", instead of split+replace which is very >costly. > >All the rest (Array recycling, inlined code, etc...) induces a marginal >improvement of 1%. > >However, I would prefer not to spent time on this issue anymore. That's totally fine. My recollection is that Array is slow, defaults to allocating 10 slots and [] lookups aren't all that fast. But no worries, it's not that important, I'm just putting it out there in case someone does have time. -Alex