Tune thresholds for fast path and small sizes, and add comments