Optimize: use QVarLengthArray<QChar> instead of QList<QChar>
The latter would put the 2byte QChar into the 8byte QList slots, and would require a memory allocation for the buffer too. With a QVarLengthArray we get zero allocations for the common case and better cache utilization as we don't suffer from the padding issue.
parent
774ff955
Please register or sign in to comment