[Libreoffice-commits] online.git: common/Protocol.hpp

Michael Meeks (via logerrit) logerrit at kemper.freedesktop.org
Tue Oct 8 16:59:25 UTC 2019


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

New commits:
commit 1b7d9626074204456237eb9ecb624d1249c613b4
Author:     Michael Meeks <michael.meeks at collabora.com>
AuthorDate: Tue Oct 8 13:50:20 2019 +0100
Commit:     Michael Meeks <michael.meeks at 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;


More information about the Libreoffice-commits mailing list