INNER CODE UNIT · C#

count

ZoneTree/ZoneTree · benchmarks/zonetree-scan-lab/Program.cs:1031

    var count = baseCount + (index < remainder ? 1 : 0);
    var start = index * baseCount + Math.Min(index, remainder);
    return (start, count);
  }
}

sealed record ScanPlan(
    ProfileReadPlan ProfileReads,
    CountryStatusKey[] CountryStatusKeys,
    CountryStatusKey[] RepeatedCountryStatusKeys,
    CountryStatusKey[] CountryStatusPrefixes,
    CountryStatusQuery[] CountryStatusQueries,
    CreatedAtQuery[] CreatedAtQueries)
{
  public static ScanPlan Create(ScanLabConfig config, ProfileGenerator generator)
  {
    var random = new Random(config.Seed);
    var createsIndexQueries = config.Mode is RunMode.Scan or RunMode.Query or RunMode.All;

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…