qt5/src/poppler-private.cc | 1 + 1 file changed, 1 insertion(+) New commits: commit 3c12c660748ccdd0b7c08b8f4a2891ad1368e437 Author: Albert Astals Cid <aa...@kde.org> Date: Thu Mar 28 12:58:41 2019 +0100
qt5: small optimization to UnicodeParsedString by using QString::reserve it should be faster and use less memory diff --git a/qt5/src/poppler-private.cc b/qt5/src/poppler-private.cc index b284a744..719ccffc 100644 --- a/qt5/src/poppler-private.cc +++ b/qt5/src/poppler-private.cc @@ -129,6 +129,7 @@ namespace Debug { } QString result; + result.reserve(stringLength / 2); // i = 2 to skip the unicode marker for ( int i = 2; i < stringLength; i += 2 ) { _______________________________________________ poppler mailing list poppler@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/poppler