> Sadly, the two benchmarks are not equivalent, the Rust version loop over ints, the Java version loop over longs.
I thought longs were 64 bit signed integers in Java, what's the difference with a u64 in Rust? Is it the signedness that affects performance?
> OptionalLong
Thanks for the info! I didn't know there were Optional primitive types in Java!