Skip to content

Commit

Permalink
Remove leftover TODO
Browse files Browse the repository at this point in the history
  • Loading branch information
danielmitterdorfer committed Feb 23, 2024
1 parent ebcd600 commit 0ea08d3
Showing 1 changed file with 0 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -221,8 +221,6 @@ public Iterator<? extends ToXContent> toXContentChunked(ToXContent.Params params
return b.endArray();
}),
ChunkedToXContentHelper.singleChunk((b, p) -> {
// TODO:In the test data this array has 152537 items. Standard serialization (Double.toString()) takes 45ns, our custom
// one takes 24ns. This change saves an additional 3.2 ms in total.
b.startArray("AnnualCO2TonsInclusive");
for (double co2Tons : annualCO2TonsInclusive) {
// write as raw value - we need direct control over the output representation (here: limit to 4 decimal places)
Expand Down

0 comments on commit 0ea08d3

Please sign in to comment.