1brc
1brc copied to clipboard
Optimize my solution
Optimize my solution:
- 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: ~3m22
Hi @gunnarmorling
I can't hold myself to optimize more :) And also a lot of learning of course!
Could you please have a look?
Many thanks.
Hi, I found a problem with this solution right now. The output is not stable (sometimes correct but sometimes not) because the equals method is wrong. Do not evaluate it right now. I will try to fix it first. FYI @gunnarmorling
Ok, converted into draft until I fix the bug
The bug is fixed, and ready for evaluation again.
Hey, could you please rebase this to latest main and squash everything into one commit? Thx.