QScriptConverter::toString() should use the QVarLengthArray instead of the QByteArray. The QVarLengthArray uses stack memory allocation which is faster. The enhancement was suggested in bug 34850.
Created attachment 50008 [details]
The patch reduces run time of the QScriptValue::toString() about 2 ms per iteration. So it is about 3.5% speed gain in a simple benchmark like this:
Comment on attachment 50008 [details]
Clearing flags on attachment: 50008
Committed r55634: <http://trac.webkit.org/changeset/55634>
All reviewed patches have been landed. Closing bug.