struct
Crysda::NullBitmap
- Crysda::NullBitmap
- Struct
- Value
- Object
Overview
=========================================================================== Null Bitmap - 1 bit per element for efficient null tracking Uses UInt64 words with SIMD acceleration for bulk operations
Defined in:
crysda/columns.crConstant Summary
-
SIMD_THRESHOLD =
4 -
SIMD threshold - use SIMD for bitmaps with >= this many words
Constructors
-
.build(size : Int32, &) : NullBitmap
Build bitmap directly from parsing - avoids intermediate Array(T?)
- .from_nullable(arr : Array) : NullBitmap
- .new(size : Int32)
- .none(size : Int32) : NullBitmap
Instance Method Summary
-
#&(other : NullBitmap) : NullBitmap
Optimized AND - uses SIMD for large bitmaps
- #[](index : Int32) : Bool
-
#|(other : NullBitmap) : NullBitmap
Optimized OR - uses SIMD for large bitmaps
- #any? : Bool
- #clear(index : Int32) : Nil
-
#count : Int32
Optimized count using SIMD popcount where available
- #none? : Bool
- #set(index : Int32) : Nil
- #size : Int32
Constructor Detail
def self.build(size : Int32, &) : NullBitmap
#
Build bitmap directly from parsing - avoids intermediate Array(T?)