summaryrefslogtreecommitdiff
path: root/src/main/java/dev/morling/onebrc/CalculateAverage_gonix.java
diff options
context:
space:
mode:
authortivrfoa <lescoutinhovr@gmail.com>2024-02-01 07:49:47 -0300
committerGitHub <noreply@github.com>2024-02-01 11:49:47 +0100
commitfdd539e1f950bae64829036764c15869a00cd475 (patch)
treeb90406301425c0bb44de25767db450d04438f33c /src/main/java/dev/morling/onebrc/CalculateAverage_gonix.java
parente7c92094bd1315115a38b8ddb1cec239d252f9ec (diff)
Exit earlier from loop when a new Result is created (#668)
* Exit earlier from loop when a new Result is created * 3) Make a cache of long[] name to String, to avoid `ByteBuffer.allocate` * and creating new UTF-8 strings. I didn't profile, so it's just a guess * that this map will be a bit faster. Although it's outside the main loop, so * not a big difference ...; * 4) Exit earlier from loop if a new entry was created. * revert: Remove cache to city name * As I was not able to make it faster... make it slower As I was not able to make it faster ... so I'll make it slower, because my current solution should *not* stay at the top, as it added basically nothing.
Diffstat (limited to 'src/main/java/dev/morling/onebrc/CalculateAverage_gonix.java')
0 files changed, 0 insertions, 0 deletions