Re:Overhead of Returning Optional Values in Java and Rust
by esprehn on Saturday October 16, 2021 @08:18PM
(#28892808)
This code should use OptionalLong instead of Optional.of() which doesn't have primitive overloads and caused wrapping of the long into a Long and extra heap indirections. It still probably can't beat Rust, but what's presented is probably not optimal.
[ Parent
| on HN ]
There are no comments on this comment yet.