1brc icon indicating copy to clipboard operation
1brc copied to clipboard

I optimized my solution:

Open yavuztas opened this issue 1 year ago • 1 comments

  • Eliminate redundant object creations in between
  • Custom HashMap on purpose - Inspired by @spullara
  • More performant temperature parsing - Inspired by @yemreinci
  • JVM tweaks, decreased heap memory, and remove AlwaysPreTouch

Check List:

  • [x] Tests pass (./test.sh <username> shows no differences between expected and actual outputs)
  • [x] All formatting changes by the build are committed
  • [x] Your launch script is named calculate_average_<username>.sh (make sure to match casing of your GH user name) and is executable
  • [x] Output matches that of calculate_average_baseline.sh
  • Execution time: ~3s
  • Execution time of reference implementation: ~3m.22s

yavuztas avatar Jan 11 '24 22:01 yavuztas

Hi @gunnarmorling I recreated my PR since there were some stubborn files, couldn't rebase for some reason. Please review this one, instead of the other. It should be closed though. Many thanks!

yavuztas avatar Jan 11 '24 22:01 yavuztas

00:04.959 now. Thx for participating!

gunnarmorling avatar Jan 12 '24 08:01 gunnarmorling