Steve wrote:
Which got me thinking that maybe a standard while loop is not the
proper solution here.  So I turned it on it's head with a do while
which gave me 100,000 which is a pretty good speed up!

    do{
        s[y] = ~s[y];
    }while(y++ <= s.length());

Thanks for making me take a long hard look at my loops :D

Regards,



I am curious, you may want to try a Duff's Device (http://en.wikipedia.org/wiki/Duff's_device) to see if it helps any or not.


Jordan S. Jones

/*
PLUG: http://plug.org, #utah on irc.freenode.net
Unsubscribe: http://plug.org/mailman/options/plug
Don't fear the penguin.
*/

Reply via email to