Class ForUtil

java.lang.Object
org.apache.lucene.codecs.lucene101.ForUtil

public final class ForUtil extends Object
Inspired from https://fulmicoton.com/posts/bitpacking/ Encodes multiple integers in one to get SIMD-like speedups. If bitsPerValue <= 8 then we pack 4 ints per Java int else if bitsPerValue <= 16 we pack 2 ints per Java int else we do scalar operations.
  • Field Details

  • Constructor Details

    • ForUtil

      public ForUtil()