> Is the content of the range [n_constant_features:] left undefined/unsused but preallocated for performance reasons?

It's undefined for performance reasons.