Why is 2 * (i * i) faster than 2 * i * i in Java?
Sección: Programación
Creado: 03-12-18 (Actualizado: 15-12-18)
The following Java program takes on average between 0.50s and 0.55s to run:
public static void main(String[] args) { long startTime = System.nanoTime(); int n = 0; for (int i = 0; i <
https://stackoverflow.com/questions/53452713/why-is-2-i-i-faster-than-2-i-i-in-java