Today faced with one thing that I would like to make out.
Here is an example of a simple task.
and my decision
public static void main(String [] args){ Scanner sc = new Scanner(System.in); long n = sc.nextLong(); long m = sc.nextLong(); long a = sc.nextLong(); System.out.print((long)Math.ceil((double) n/a)* (long)Math.ceil((double)m/a)); } when compiled on java8, the result is 280 ms. Not really. Then I decided to compile it on java7 and got 156 ms. The difference is very noticeable on such trifles.
The question is: why does java8 work 2 times slower on such trifles, and in the future is it worth to focus on java7?