summaryrefslogtreecommitdiff
path: root/vcl/qa
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2023-10-27 11:18:13 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2023-10-27 22:03:24 +0200
commit1d86a0b632813efb2259b795b272f8aa40a7c768 (patch)
treeb9c330e4de7e3840a2754a473f606e29dfdc99fb /vcl/qa
parent9b5a00d2281bebaac5fccfde17de6ca5134fc229 (diff)
tdf#152571 speedup slow draw file save
with lots of images, we seem to spend lots of time calculating CRC. Replace the vcl checksum/CRC with rtl_crc32 in sal/, which forwards to the zlib implementation, which has all kinds of nice SIMD code for performance. Change-Id: I295e2ee91b3450fa558b06e67aac0fbb20b85f52 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/158529 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'vcl/qa')
-rw-r--r--vcl/qa/cppunit/svm/svmtest.cxx22
1 files changed, 11 insertions, 11 deletions
diff --git a/vcl/qa/cppunit/svm/svmtest.cxx b/vcl/qa/cppunit/svm/svmtest.cxx
index d89f2f93118d..2f1ccfd9ecef 100644
--- a/vcl/qa/cppunit/svm/svmtest.cxx
+++ b/vcl/qa/cppunit/svm/svmtest.cxx
@@ -943,11 +943,11 @@ void SvmTest::checkBitmaps(const GDIMetaFile& rMetaFile)
#if defined OSL_BIGENDIAN
"5e01ddcc"
#else
- "b8dee5da"
+ "469f0820"
#endif
}});
assertXPathAttrs(pDoc, "/metafile/bmpscale[1]", {
- {"x", "1"}, {"y", "2"}, {"width", "3"}, {"height", "4"}, {"crc", "281fc589"}
+ {"x", "1"}, {"y", "2"}, {"width", "3"}, {"height", "4"}, {"crc", "4937e32d"}
});
assertXPathAttrs(pDoc, "/metafile/bmpscalepart[1]", {
{"destx", "1"}, {"desty", "2"}, {"destwidth", "3"}, {"destheight", "4"},
@@ -956,7 +956,7 @@ void SvmTest::checkBitmaps(const GDIMetaFile& rMetaFile)
#if defined OSL_BIGENDIAN
"b8dee5da"
#else
- "5e01ddcc"
+ "3789377b"
#endif
}
});
@@ -1018,14 +1018,14 @@ void SvmTest::checkBitmapExs(const GDIMetaFile& rMetaFile, bool bIsSvmFile)
"33b4a07c",
"742c3e35",
#else
- "d8377d4f",
- "281fc589",
- "5e01ddcc",
- "4df0e464",
- "17df308f", // 1-bit
- "3c80d829", // 4-bit color bitmap - same as 8-bit color bitmap
- "3c80d829",
- "71efc447",
+ "ac936607",
+ "4937e32d",
+ "3789377b",
+ "839e8cce",
+ "236aaf55", // 1-bit
+ "2949ccc7", // 4-bit color bitmap - same as 8-bit color bitmap
+ "2949ccc7",
+ "e5df8aad",
#endif
};