add QByteArray::reserve() to collecting data.