gunnarmorling / 1brc

1️⃣🐝🏎️ The One Billion Row Challenge -- A fun exploration of how quickly 1B rows from a text file can be aggregated with Java
https://www.morling.dev/blog/one-billion-row-challenge/
Apache License 2.0
5.69k stars 1.72k forks source link

Use crac to start faster #705

Closed ianopolousfast closed 5 months ago

ianopolousfast commented 5 months ago

@gunnarmorling I'm trying to get crac working with zulu jvm, but the maven build won't find jdk.crac package. Do I need to change the pom.xml? I can compile and run it fine in IntelliJ.

(GraalVM native-image doesn't support the vector api, hence this route)

gunnarmorling commented 5 months ago

Yes, it will have to be added to the configuration of maven-compiler-plugin in pom.xml. It would have to be a new profile similar to the one for JDK 22, enabled based on that Zulu JDK (you can activate based on vendor string, I believe). Note that we're after the cut-off time, you'll have two more changes you can make to this PR (see note at the top of the README). If it's not working or valid then, I'll have to close it unfortunately. Updates should be pushed quickly, so I can evaluate all the pending entries. Thx!

ianopolousfast commented 5 months ago

I can't get it working in maven after an hour so I think I'm going to give up. Shame, as it would have evened the playing field between AOT and JVM based runs.

ianopolousfast commented 5 months ago

Maybe next year... ;-)

gunnarmorling commented 5 months ago

Gotcha, thanks for trying. Would also be very interested in seeing results with CRaC. Although someone said they tried and it didn't yield much if even any benefit. Thanks a lot for participating in 1BRC!

Message ID: @.***>