SEGMENT_SLACK

const val SEGMENT_SLACK: Int

Room for the append that crosses the threshold, since the check runs after it — without this a segment ends over capacity and StringBuilder doubles, once per segment.