Skip to content

Commit

Permalink
🚧 Removing limit
Browse files Browse the repository at this point in the history
  • Loading branch information
gunnarmorling committed Dec 28, 2023
1 parent e0b316a commit 28ed572
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion src/main/java/dev/morling/onebrc/CalculateAverage.java
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,6 @@ public class CalculateAverage {

public static void main(String[] args) throws IOException {
Map<String, Double> measurements = Files.lines(Paths.get(FILE))
.limit(10_000_000)
.map(l -> l.split(";"))
.collect(groupingBy(m -> m[0], averagingDouble(m -> Double.parseDouble(m[1]))));

Expand Down

0 comments on commit 28ed572

Please sign in to comment.