[EMAIL PROTECTED] writes:

> This means that instead of writing:
> for(int i=0; i<constant; i++) write:
> for(int i=constant-1; i>=0; i--)

This makes assumptions about the use of the variable `i'.

It could be written as "for(int i=constant-1; i>-1; i--)"

I do not know that it would be faster either way across all JVMs and
their JIT counterparts.  It may be provable for a limited set though.
Such proof is welcome.

Brian

Reply via email to