Skip to content

Replace categorizeBatchSize() threshold ladder with table + binary search #20

@OldCrow

Description

@OldCrow

PerformanceHistory::categorizeBatchSize is a 41-CCN if/else chain across ~75 lines. Replace it with a constexpr std::array of {threshold, category} pairs and a std::upper_bound lookup. Same behaviour, visible data, no accidental complexity.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions