avoid newSize = 0 if maxSize_ = 0
avoid alloc(0)
avoid mov if unnecessary