4 ms·
Does 0 ms = "at compile time"? Seeing that the impl. just computes ((long) upTo) - from + last; I would think it just takes less than 1 ms on first execut
by alfu 3y ago
Does 0 ms = "at compile time"? Seeing that the impl. just computes
((long) upTo) - from + last;
I would think it just takes less than 1 ms on first execution.
https://github.com/openjdk/jdk/blob/caa841d9a52352a975394e5506fbc56563df9321/src/java.base/share/classes/java/util/stream/Streams.java#L113 https://github.com/openjdk/jdk/blob/caa841d9a52352a975394e55...