RFR: 8283892: Compress and expand bits [v2]

Paul Sandoz psandoz at openjdk.java.net
Thu Apr 7 14:57:44 UTC 2022


On Thu, 7 Apr 2022 14:01:53 GMT, Claes Redestad <redestad at openjdk.org> wrote:

>> Paul Sandoz has updated the pull request incrementally with one additional commit since the last revision:
>> 
>>   Doc and test updates.
>
> I experimented with this and drafted a few microbenchmarks along and a micro-optimization to the expand methods (see #8146). Up to you, but I think it makes sense to consider such optimizations to the plain java implementation given that 1) not all platforms have specialized instructions where an intrinsic will make sense and 2) it appears to be a boost to warmup.

@cl4es thanks, your changes to `expand` looks reasonable, given the array allocation cost.

-------------

PR: https://git.openjdk.java.net/jdk/pull/8115


More information about the core-libs-dev mailing list