@@ -120,7 +120,7 @@ private static string GenerateStringInternal<TValue>(ReadOnlyMemory<string> keys
120120 keySpan = keyMemory . Span ;
121121 }
122122
123- LogMinMaxLength ( logger , strProps . LengthData . Min , strProps . LengthData . Max ) ;
123+ LogMinMaxLength ( logger , strProps . LengthData . LengthMap . Min , strProps . LengthData . LengthMap . Max ) ;
124124
125125 HashDetails hashDetails = new HashDetails ( ) ;
126126 GeneratorConfig < string > genCfg = new GeneratorConfig < string > ( fdCfg . StructureType , keyType , ( uint ) keySpan . Length , strProps , DefaultStringComparison , hashDetails , generator . Encoding , strProps . CharacterData . AllAscii ? GeneratorFlags . AllAreASCII : GeneratorFlags . None , trimPrefix , trimSuffix ) ;
@@ -133,7 +133,7 @@ private static string GenerateStringInternal<TValue>(ReadOnlyMemory<string> keys
133133 return GenerateWrapper ( generator , genCfg , new SingleValueStructure < string , TValue > ( ) , keyMemory , values ) ;
134134
135135 // For small amounts of data, logic is the fastest. However, it increases the assembly size, so we want to try some special cases first.
136- double density = ( double ) keySpan . Length / ( strProps . LengthData . Max - strProps . LengthData . Min + 1 ) ;
136+ double density = ( double ) keySpan . Length / ( strProps . LengthData . LengthMap . Max - strProps . LengthData . LengthMap . Min + 1 ) ;
137137
138138 // Use KeyLengthStructure only when string lengths are unique and density >= 75%
139139 if ( strProps . LengthData . Unique && density >= 0.75 )
@@ -346,7 +346,7 @@ internal static Candidate GetBestHash(ReadOnlySpan<string> data, StringPropertie
346346 perfect . Sort ( static ( a , b ) => b . Fitness . CompareTo ( a . Fitness ) ) ;
347347 notPerfect . Sort ( static ( a , b ) => b . Fitness . CompareTo ( a . Fitness ) ) ;
348348
349- string test = new string ( 'a' , ( int ) props . LengthData . Max ) ;
349+ string test = new string ( 'a' , ( int ) props . LengthData . LengthMap . Max ) ;
350350 byte [ ] testBytes = encoding == GeneratorEncoding . UTF8 ? Encoding . UTF8 . GetBytes ( test ) : Encoding . Unicode . GetBytes ( test ) ;
351351
352352 //We start with the perfect results (if any)
0 commit comments