There is an implementation of this in the attic that definitely performs better than the full version. It would be nicer still to have a single version that works well in both cases; this might be achieved by calculating max(bitlen(exp[i])) over all the exponents and starting the main loop from there.
There is an implementation of this in the
attic
that definitely performs better than the full version. It would be nicer still to have a single version that works well in both cases; this might be achieved by calculatingmax(bitlen(exp[i]))
over all the exponents and starting the main loop from there.