Re: Fastest Way to...
- Posted by euphoriCK <euphoric at cklester.com> Oct 28, 2003
- 371 views
Pete Lomax wrote: >>Okay, here's my attempt: >> >>junk =3D pos <=3D 0 >>pos =3D pos * junk >>pos +=3D not junk >> >> >That's about 3 times slower. > >In your first post, you "unrolled the loop" which is a classic way to >make something as fast as possible. > >Pete > > hey, Pete, thanks for that info. I later realized that it won't be a static size sequence, so I have to accommodate all sizes. I bet looping through the sequence when length() is more than ? would be faster than the sequence operations... right?