@@ -6,9 +6,6 @@ namespace Genbox.FastData;
66[ PublicAPI ]
77public sealed class FastDataConfig ( StructureType structureType = StructureType . Auto )
88{
9- private int _maxHistogramBuckets = 20 ;
10- private int _skipQuantum = 128 ;
11-
129 /// <summary>The type of structure to create. Defaults to Auto.</summary>
1310 public StructureType StructureType { get ; set ; } = structureType ;
1411
@@ -72,23 +69,23 @@ public sealed class FastDataConfig(StructureType structureType = StructureType.A
7269 /// <summary>Maximum number of histogram buckets used for interpolated binary search selection.</summary>
7370 public int MaxHistogramBuckets
7471 {
75- get => _maxHistogramBuckets ;
72+ get ;
7673 set
7774 {
7875 if ( value <= 0 )
7976 throw new ArgumentOutOfRangeException ( nameof ( value ) , "MaxHistogramBuckets must be greater than 0." ) ;
8077
81- _maxHistogramBuckets = value ;
78+ field = value ;
8279 }
83- }
80+ } = 20 ;
8481
8582 /// <summary>Maximum relative slowdown allowed for a perfect hash before preferring a faster non-perfect hash.</summary>
8683 public double PerfectHashMaxSlowdownFactor { get ; set ; } = 0.25 ;
8784
8885 /// <summary>Sample rate for Elias-Fano zero-select index. Must be a power of two.</summary>
8986 public int SkipQuantum
9087 {
91- get => _skipQuantum ;
88+ get ;
9289 set
9390 {
9491 if ( value <= 0 )
@@ -97,9 +94,9 @@ public int SkipQuantum
9794 if ( ( value & ( value - 1 ) ) != 0 )
9895 throw new ArgumentException ( "SkipQuantum must be a power of two." , nameof ( value ) ) ;
9996
100- _skipQuantum = value ;
97+ field = value ;
10198 }
102- }
99+ } = 128 ;
103100
104101 /// <summary>When enabled, data structures will be generated with the smallest possible internal data types to lower memory.</summary>
105102 public bool TypeReductionEnabled { get ; set ; } = true ; //TODO: Evaluate default value
0 commit comments