...one of the most highly
regarded and expertly designed C++ library projects in the
world. — Herb Sutter and Andrei
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,
worst-case performance minimization rules, and such a lookup table
would be difficult to optimize for cross-platform performance.
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.