Re: Reverse() was: Win32Lib Update

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

>I'm no speed demon, but I belive this routine is fairly fast and most
>important... it's generic and flexible.


Well.... after Rob's post I realized that it ain't "fairly fast"... ;) At
least
compared to the other 6 routines posted.

But I still like the "idea" of:

1.- Iterate n/2 times
2.- Don't create a new sequence. What if the sequence is very large?
Memory swaping time would be significant?

Regards,
    Daniel   Berstein
    daber at pair.com

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

Search



Quick Links

User menu

Not signed in.

Misc Menu