diff options
| author | Yavuz Tas <12643010+yavuztas@users.noreply.github.com> | 2024-01-06 19:09:16 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-01-06 19:09:16 +0100 |
| commit | e8b2d2d7b4caf114b12fa0386e35f741f31df905 (patch) | |
| tree | 7acd76542146dff0dc8bfee7ff90fafa4cd6b2a8 /src/main/java/dev/morling/onebrc/CalculateAverage_artpar.java | |
| parent | 9879ff50340c73f5bb1f02bce41bdb83a6a01405 (diff) | |
Improvement in CalculateAverage_yavuztas (#162)
* improve double reading by eleminating string parsing in between, make calculations over on integer instead of double, parse into double at the end only once
* more improvements, sharing a single StringBuilder to build all toStrings, minor performance gain.
* micro optimizations on reading temperature
* a small skip for redundant traverses, micro optmization
* micro optimization, eleminate some if cases, saves 0.5 seconds more
* micro optimization, calculate key hash ahead eleminates more more loop, saves 0.5 seconds more :)
* optimize key equals and handling the case when a region is larger than max integer size
---------
Co-authored-by: Yavuz Tas <yavuz.tas@ing.com>
Diffstat (limited to 'src/main/java/dev/morling/onebrc/CalculateAverage_artpar.java')
0 files changed, 0 insertions, 0 deletions
