New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Reading and parsing optimizations: CalculateAverage_spullara #21
Conversation
I find that the actual runtimes vary quite a bit from run to run. Not sure what is causing that. Happens on both Windows & Mac. Might be something related to file caching. |
Using Graal, it gets down to ~4.5s. |
@spullara really cool, i even get a slightly better performance with Executors.newVirtualThreadPerTaskExecutor() instead of the fixed threadPool |
Latest commit slightly beats the performance of the leaderboard leader at 2900ms using GraalVM. FileChannel was the key to closing the gap. Have to see if improving the hash map helps a lot. |
Now down to 2s after writing my own hash map. |
Very nice, clocking in at 00:14.848 in the evaluation environment! |
On my MacBook Pro M3 Ultra:
CalculateAverage: 2m37.788s
CalculateAverage_royvanrijn: 0m29.639s
CalculateAverage_spullara: 0m6.278s
Mostly optimized reading the file and parsing it.