summaryrefslogtreecommitdiff
path: root/vcl
diff options
context:
space:
mode:
authorMichael Meeks <michael.meeks@novell.com>2010-10-15 15:23:48 +0100
committerMichael Meeks <michael.meeks@novell.com>2010-10-15 15:23:48 +0100
commit309b89b93489c785a7ed2460ad5064ff0422dfd3 (patch)
treed3eeea9c68a9151af32931d395b5789641eb6ce4 /vcl
parent31de11d1439d5aa7f25d9bee253de907c4a62d4e (diff)
reduce large realloc / realloc thrash for image reading.
Diffstat (limited to 'vcl')
-rw-r--r--vcl/source/gdi/impimagetree.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/vcl/source/gdi/impimagetree.cxx b/vcl/source/gdi/impimagetree.cxx
index 445b2c362b3f..54fa97e5f46f 100644
--- a/vcl/source/gdi/impimagetree.cxx
+++ b/vcl/source/gdi/impimagetree.cxx
@@ -85,8 +85,8 @@ std::auto_ptr< SvStream > wrapStream(
OSL_ASSERT(stream.is());
std::auto_ptr< SvStream > s(new SvMemoryStream);
for (;;) {
- css::uno::Sequence< sal_Int8 > data;
- sal_Int32 const size = 30000;
+ sal_Int32 const size = 2048;
+ css::uno::Sequence< sal_Int8 > data(size);
sal_Int32 n = stream->readBytes(data, size);
s->Write(data.getConstArray(), n);
if (n < size) {