Re: Fastest Way to...

new topic     » goto parent     » topic index » view thread      » older message » newer message

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?

new topic     » goto parent     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu