comphelper/source/streaming/memorystream.cxx |    1 +
 1 file changed, 1 insertion(+)

New commits:
commit 02446d13764d90567114525f648475b41d6b0d12
Author:     Noel Grandin <noel.gran...@collabora.co.uk>
AuthorDate: Wed May 11 11:42:40 2022 +0200
Commit:     Noel Grandin <noel.gran...@collabora.co.uk>
CommitDate: Wed May 11 20:56:35 2022 +0200

    use better default size for UNOMemoryStream
    
    which means we don't need to re-allocate the buffer as often
    
    Change-Id: I81678af2ed4146b94eb200324459eef7016afd06
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/134196
    Tested-by: Jenkins
    Reviewed-by: Noel Grandin <noel.gran...@collabora.co.uk>

diff --git a/comphelper/source/streaming/memorystream.cxx 
b/comphelper/source/streaming/memorystream.cxx
index b8ff86e03b17..a7612bf67b07 100644
--- a/comphelper/source/streaming/memorystream.cxx
+++ b/comphelper/source/streaming/memorystream.cxx
@@ -91,6 +91,7 @@ private:
 UNOMemoryStream::UNOMemoryStream()
 : mnCursor(0)
 {
+    maData.reserve(1 * 1024 * 1024);
 }
 
 // XServiceInfo

Reply via email to