Skip to content

Commit 35d8d69

Browse files
committed
Add support for keyed lookups
1 parent 7d5811c commit 35d8d69

File tree

208 files changed

+763
-5158
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

208 files changed

+763
-5158
lines changed

Src/FastData.Benchmarks/Benchmarks/AnalyzerBenchmarks.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ public AnalyzerBenchmarks()
1818
Random rng = new Random(42);
1919
_data = Enumerable.Range(1, 100).Select(_ => TestHelper.GenerateRandomString(rng, 50)).ToArray();
2020

21-
StringProperties props = DataAnalyzer.GetStringProperties(_data);
21+
StringProperties props = KeyAnalyzer.GetStringProperties(_data);
2222
_analyzer = new GPerfAnalyzer(_data.Length, props, new GPerfAnalyzerConfig(), new Simulator(_data.Length, GeneratorEncoding.UTF16), NullLogger<GPerfAnalyzer>.Instance);
2323
}
2424

Src/FastData.Benchmarks/Benchmarks/SegmentGeneratorsBenchmarks.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ public class SegmentGeneratorsBenchmarks
1414
private readonly OffsetGenerator _ofGen = new OffsetGenerator();
1515

1616
//We start at 8 and go up to 100 to cover as many cases as possible
17-
private readonly StringProperties _props = DataAnalyzer.GetStringProperties(Enumerable.Range(8, 100).Select(x => TestHelper.GenerateRandomString(Random.Shared, x)).ToArray());
17+
private readonly StringProperties _props = KeyAnalyzer.GetStringProperties(Enumerable.Range(8, 100).Select(x => TestHelper.GenerateRandomString(Random.Shared, x)).ToArray());
1818

1919
[Benchmark]
2020
public object BruteForceGenerator() => _bfGen.Generate(_props).ToArray();

Src/FastData.Generator.CPlusPlus.Tests/Verify/HashSetLinearStructure_Byte_3.verified.txt

Lines changed: 0 additions & 70 deletions
This file was deleted.

Src/FastData.Generator.CPlusPlus.Tests/Verify/HashSetLinearStructure_Char_3.verified.txt

Lines changed: 0 additions & 70 deletions
This file was deleted.

Src/FastData.Generator.CPlusPlus.Tests/Verify/HashSetLinearStructure_Double_4.verified.txt

Lines changed: 0 additions & 75 deletions
This file was deleted.

Src/FastData.Generator.CPlusPlus.Tests/Verify/HashSetLinearStructure_Double_5_HashZeroOrNaN.verified.txt

Lines changed: 0 additions & 73 deletions
This file was deleted.

Src/FastData.Generator.CPlusPlus.Tests/Verify/HashSetLinearStructure_Int16_5.verified.txt

Lines changed: 0 additions & 71 deletions
This file was deleted.

0 commit comments

Comments
 (0)