Cherry-picked from 2608-performance, restricted to the indexer: the same commit there also hoists a
reciprocal out of a loop in the scaling code, which is not being touched on this branch.
The histogram bins are unsigned integers and the counts stay below 2^24, so they convert to float
exactly - the vote is bit-identical, and the indexing result with it.
Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01VfYvJT5Nb71suJCowRBn5z