class
Crysda::StringPool
- Crysda::StringPool
- Reference
- Object
Overview
=========================================================================== String Pool for String Interning (Dictionary Encoding) Reduces memory for categorical columns with repeated values
Defined in:
crysda/columns.crConstructors
Instance Method Summary
-
#beneficial?(total_strings : Int32) : Bool
Check if interning would be beneficial (high repetition ratio)
- #clear
-
#hit_ratio : Float64
Statistics
-
#intern(str : String) : String
Intern a string - returns the canonical instance
-
#intern(str : String | Nil) : String | Nil
Intern a nullable string
-
#size : Int32
Number of unique strings in pool
Constructor Detail
Instance Method Detail
def beneficial?(total_strings : Int32) : Bool
#
Check if interning would be beneficial (high repetition ratio)