summaryrefslogtreecommitdiff
path: root/comphelper
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2022-05-11 11:42:40 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2022-05-11 20:56:35 +0200
commit02446d13764d90567114525f648475b41d6b0d12 (patch)
tree16345e8846a7ecb5265e166fd9493d44d5abed06 /comphelper
parentdad7593cf6bb91ecf95153e983723dd2cd03b469 (diff)
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.grandin@collabora.co.uk>
Diffstat (limited to 'comphelper')
-rw-r--r--comphelper/source/streaming/memorystream.cxx1
1 files changed, 1 insertions, 0 deletions
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