common/Protocol.hpp |    1 +
 1 file changed, 1 insertion(+)

New commits:
commit 1b7d9626074204456237eb9ecb624d1249c613b4
Author:     Michael Meeks <michael.me...@collabora.com>
AuthorDate: Tue Oct 8 13:50:20 2019 +0100
Commit:     Michael Meeks <michael.me...@collabora.com>
CommitDate: Tue Oct 8 17:58:57 2019 +0100

    Avoid lots of re-sizing of token array while parsing.
    
    Change-Id: I009d1203838fa2d585bd415836fc6338f47e2be3

diff --git a/common/Protocol.hpp b/common/Protocol.hpp
index 2d897a323..cb915fa5f 100644
--- a/common/Protocol.hpp
+++ b/common/Protocol.hpp
@@ -109,6 +109,7 @@ namespace LOOLProtocol
         {
             return tokens;
         }
+        tokens.reserve(8);
 
         const char* start = data;
         const char* end = data;
_______________________________________________
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits

Reply via email to