Boost
C++ Libraries
...one of the most highly
regarded and expertly designed C++ library projects in the
world.
— Herb Sutter and Andrei
Alexandrescu, C++
Coding Standards
This is an older version of Boost and was released in 2022. The current version is 1.90.0.
The ideal way to optimize the constants would be to have a carefully-tuned
lookup-table instead of the get_max_count function, but
4 tuning variables is simpler, get_max_count enforces
worst-case performance minimization rules, and such a lookup table
would be difficult to optimize for cross-platform performance.
Alternatively, get_max_count could be used to generate
a static lookup table. This hasn't been done due to concerns about
cross-platform compatibility and flexibility.