From: Scott Sauyet on
On Jan 14, 2:53 pm, Jake Jarvis <pig_in_sh...(a)yahoo.com> wrote:
> Scott Sauyet wrote:
>> I collected the results at
>>    http://scott.sauyet.com/Javascript/Test/LoopTimer/1/
>> But I've done something screwy to IE on the page trying to be clever.
>> If anyone can tell me why the generated links are not working properly
>> in IE, I would love to know.

> line 120:
>
> | var size = parseInt(cells[i].textContent, 10) || 1,
>                                ^^^^^^^^^^^
> No such thing in mshtml

D'OH. Self-administered dope-slap! I guess that's what I guess for
throwing things together.

Thank you very much.

-- Scott
From: Scott Sauyet on
On Jan 14, 3:23 pm, Scott Sauyet <scott.sau...(a)gmail.com> wrote:
> On Jan 14, 2:53 pm, Jake Jarvis <pig_in_sh...(a)yahoo.com> wrote:
>
> > Scott Sauyet wrote:
> >> I collected the results at
> >>    http://scott.sauyet.com/Javascript/Test/LoopTimer/1/
> >> But I've done something screwy to IE on the page trying to be clever.
> >> If anyone can tell me why the generated links are not working properly
> >> in IE, I would love to know.
> > line 120:
>
> > | var size = parseInt(cells[i].textContent, 10) || 1,
> >                                ^^^^^^^^^^^
> > No such thing in mshtml
>
> D'OH.  Self-administered dope-slap!  I guess that's what I guess for
> throwing things together.

Updated version:

http://scott.sauyet.com/Javascript/Test/LoopTimer/2/

Thanks again,

-- Scott
From: Jorge on
On Jan 14, 9:25 pm, Scott Sauyet <scott.sau...(a)gmail.com> wrote:
> On Jan 14, 3:23 pm, Scott Sauyet <scott.sau...(a)gmail.com> wrote:
>
>
>
>
>
> > On Jan 14, 2:53 pm, Jake Jarvis <pig_in_sh...(a)yahoo.com> wrote:
>
> > > Scott Sauyet wrote:
> > >> I collected the results at
> > >>    http://scott.sauyet.com/Javascript/Test/LoopTimer/1/
> > >> But I've done something screwy to IE on the page trying to be clever..
> > >> If anyone can tell me why the generated links are not working properly
> > >> in IE, I would love to know.
> > > line 120:
>
> > > | var size = parseInt(cells[i].textContent, 10) || 1,
> > >                                ^^^^^^^^^^^
> > > No such thing in mshtml
>
> > D'OH.  Self-administered dope-slap!  I guess that's what I guess for
> > throwing things together.
>
> Updated version:
>
>    http://scott.sauyet.com/Javascript/Test/LoopTimer/2/
>
> Thanks again,

You can't compare a .push(value) with an [i]= value; !
--
Jorge.
From: Scott Sauyet on
On Jan 14, 3:40 pm, Jorge <jo...(a)jorgechamorro.com> wrote:
> On Jan 14, 9:25 pm, Scott Sauyet <scott.sau...(a)gmail.com> wrote:
>> Updated version:
>>    http://scott.sauyet.com/Javascript/Test/LoopTimer/2/
> > Thanks again,
>
> You can't compare a .push(value) with an [i]= value; !

Oh no? I believe I just did! :-)

This was really a comparison of my solution to the original problem
and Thomas Lahn's follow-up.

I'm not trying to prove something in particular about what part of the
algorithm is speedy or slow, only to see what differences in speed
there are between them.

-- Scott
From: Jorge on
On Jan 14, 9:57 pm, Scott Sauyet <scott.sau...(a)gmail.com> wrote:
> On Jan 14, 3:40 pm, Jorge <jo...(a)jorgechamorro.com> wrote:
>
> > On Jan 14, 9:25 pm, Scott Sauyet <scott.sau...(a)gmail.com> wrote:
> >> Updated version:
> >>    http://scott.sauyet.com/Javascript/Test/LoopTimer/2/
> > > Thanks again,
>
> > You can't compare a .push(value) with an [i]= value; !
>
> Oh no?  I believe I just did!  :-)
>
> This was really a comparison of my solution to the original problem
> and Thomas Lahn's follow-up.
>
> I'm not trying to prove something in particular about what part of the
> algorithm is speedy or slow, only to see what differences in speed
> there are between them.

Ok. But don't believe what Pointy said: "Make benchmarks then, and you
will see that the simple post-decrement
increases efficiency considerably as well", because it's not true.
--
Jorge.