summaryrefslogtreecommitdiff
path: root/package
AgeCommit message (Collapse)AuthorFilesLines
2014-11-12package: Do not bother with deflating big jpeg imagesMatúš Kukan1-2/+12
It takes a lot of time and we can save 1% of size if at all. Rather store them uncompressed in the zip file. Maybe we should not deflate jpeg files at all. For some small ones, about 100KB - 200KB, I've seen 2% savings. With png, we can save a bit more, although it's still only about 4% - 8%. Change-Id: I43a3e3812882e4ce85e7af9d0aaab454d98c4860
2014-11-05package: Do not deflate small streams in a threadMatúš Kukan1-0/+5
Change-Id: Iae804a34f344aa793a6d5c13315f7bc1eb64c0a2
2014-11-05Test parallelism again.Matúš Kukan1-1/+1
Change-Id: I495e147b679b770c479eb0bb2c2714d815e5b9e9
2014-11-05package: Increase size of buffersMatúš Kukan1-1/+1
I just want to see what's going to happen - if anything. Change-Id: Iba09c261126654ab19fc5755b3923b406db15031
2014-11-05ZipPackageStream::getRawData can be privateMatúš Kukan1-2/+3
Change-Id: I66cbbfb2aa6abc6c8ebe34d9ea69855436c23edd
2014-11-05Simplify input parameters to just take the sequenceMatúš Kukan10-34/+36
Change-Id: Ic2538ca8b0f7261064e1dfbf3884dd452003c797
2014-11-05Revert "HACK to avoid expensive and pointless deflating of jpeg files"Matúš Kukan1-11/+1
This reverts commit 8c10cb5edc6902a96dc265d36faad0a8382b1a4a.
2014-11-05Disable deflating in a threadMatúš Kukan1-1/+1
Change-Id: I1803cd61e283bcc20d4d59870121e785bc778f4a
2014-11-05package: Add possibility to disable deflating in a threadMatúš Kukan1-13/+30
Change-Id: I4d98b6f8b3315b731206700eb65f08463299dda3
2014-11-05HACK to avoid expensive and pointless deflating of jpeg filesMatúš Kukan1-1/+11
This is not intended to land in master; it's just for testing. Change-Id: If93cb78dcef903584de7b23f37282852c6d69f35
2014-11-05package: Finally implement parallel zip entries deflatingMatúš Kukan7-72/+121
For that: 1, create ZipPackageStream::successfullyWritten to be called after the content is written 2, Do not take mutex when reading from WrapStreamForShare - threads should be using different streams anyway, but there is only one common mutex. :-/ Change-Id: I90303e49206b19454dd4141e24cc8be29c433045
2014-11-05package: Call writeLOC always after putNextEntry explicitlyMatúš Kukan5-38/+39
Preparation step to parallel deflating. Rename putNextEntry to setEntry and make it a static function. We need to call setEntry before starting thread but writeLOC after. Change-Id: I99a9ffa7dc4c18b47c621847b48bf8469bfb789a
2014-11-05package: Do not use hacky bit 1<<4 in ZipEntry::nFlagMatúš Kukan3-34/+11
Change-Id: I504f5c0c9aa9b655ffb53d9820a33677dad6aa08
2014-11-05There is no XZipOutputEntry interfaceMatúš Kukan2-10/+4
Change-Id: Ib8fa3351ba25416a13d6c8bf63bd5fc8e43703c5
2014-11-05package: Use memory stream for compressing zip entriesMatúš Kukan6-20/+26
Change-Id: Ibf81dc3cd8a9a9da3dfd6ee6e587a522c4d56a44
2014-11-05ZipOutputEntry: m_pCurrentEntry is always setMatúš Kukan1-45/+38
Change-Id: Ib6a69a83f4a378df838b2231b9eba7fba49cd9f1
2014-11-05package: Zipping STORED entry is the same as rawWrite and we don't encrypt itMatúš Kukan3-71/+58
Change-Id: Ie3f8ac261a70c9a2b5182fc7d36938d0a46ec045
2014-11-05package: Move most ZipOutputEntry's methods back to ZipOutputStreamMatúš Kukan7-201/+204
We want to use ZipOutputEntry only for deflating (and maybe rename it). ca13a9377e4a36436e4c82bb33648d0f3b6db6f5 was not a good idea because the data still needs to be written sequentially anyway. Otherwise it's hard to get offset positions of individual entries right. Since this commit rawCloseEntry needs to be called always; also when we use write&closeEntry because we don't call writeEXT in closeEntry anymore. Need to rename and add comments later. Change-Id: I03bd48ca6e108e6253a77a137746165909ca3c3d
2014-11-05ZipPackageFolder: releaseUpwardRef only calls clearParent, remove it.Matúš Kukan3-31/+1
Since commit 0c5bb3f42d38b3c16015dc0a45defd1b1dad4f92. Change-Id: I5511f9dc829aca42790f05cb8fb3ebd83b2acad4
2014-11-04coverity#706578 uncaught exceptionDavid Tardon1-7/+14
Change-Id: I70640f42db49da274118f7336ff072b1b53ac640
2014-10-30coverity#706568 Uncaught exceptionCaolán McNamara1-1/+9
Change-Id: I05a7700b782d63654406139532a775173295ea9f
2014-10-30coverity#706569 Uncaught exceptionCaolán McNamara1-3/+10
Change-Id: I7c1245eacd92b5869e6dab0389ee0ca3cebd98da
2014-10-30OSL_ENSURE->assert when follow by deref of tested pointerCaolán McNamara1-1/+1
Change-Id: Ib703cb24619228c081c156c4ed52bf7b878fbedd
2014-10-30coverity#706582 Uncaught exceptionCaolán McNamara1-2/+10
Change-Id: I82fad3f152fe5a563675686accedb583d07d2b13
2014-10-30coverity#706583 Uncaught exceptionCaolán McNamara1-2/+10
Change-Id: I508eb91d7c32e8604525511c33c39471afd3ffbf
2014-10-30coverity#706584 Uncaught exceptionCaolán McNamara1-2/+15
Change-Id: I9521ed7d75cae1a1e90fd73dd7b8bd822ab4521f
2014-10-27coverity#706590 Uncaught exceptionCaolán McNamara2-2/+2
Change-Id: I2005b792c74ad5a5f58c831dcc7caa5134280890
2014-10-27cid#1249676 Uninitialized scalar fieldNoel Grandin1-0/+2
Change-Id: I87df4e9c1d3f36afccf13aebfd95d1b4f3bfa655
2014-10-24package: OInputCompStream::m_xStream is never nullMichael Stahl2-39/+6
... as proven by the un-checked dereference in the dispose() method called from the dtor; simplify based on that and assert in ctor. Change-Id: Id369b80bd89fa59d99b209796c33acb39cbb10f3
2014-10-23Remove pointless functions now that saveChild() is ZipPackageStream's memberMatúš Kukan2-40/+22
Change-Id: Id43ec2e7ddb1035d3306170523764bb9a74c03b8
2014-10-23Move ZipPackageStream::saveChild to proper source fileMatúš Kukan2-382/+385
Change-Id: Icd108215874e830e5c9587f7dbb38a7f11ee27c8
2014-10-23package: Add pure virtual ZipPackageEntry::saveChild()Matúš Kukan7-119/+116
..and adapt what needs to be changed. So that, we can kill at least some usages of horrible ContentInfo struct. Change-Id: I32d41f3b8ce2dfb65f0d1df18a540a3f67dcab6d
2014-10-23package: ZipPackageStream: prefix membersMatúš Kukan2-75/+75
Change-Id: I02a1c3189c6b52f4f539b0eaa8878985cae8b321
2014-10-23package: Add ZipOutputEntry to isolate deflating of streams.Matúš Kukan8-415/+504
Preparation commit for deflating streams in parallel. We still use the same single XOutputStream (ByteChucker :-) for sequential writing but this can now be changed more easily. Change-Id: Idf26cc2187461660e31ac2e12c4708e761596fb2
2014-10-23coverity#706585 Uncaught exceptionCaolán McNamara2-2/+2
Change-Id: Ic8d2963536b793f0a229901d9e13d8e54842d9b9
2014-10-23coverity#706586 Uncaught exceptionCaolán McNamara2-2/+2
Change-Id: I3ec05ae695428f92b7424295b6f2d3e833c6b162
2014-10-22unusedcode: Remove Deflater::setLevelMatúš Kukan1-61/+16
Which makes bSetParams always false; remove that too, together with nLevel. Change-Id: I94a4ec14b2b2c498d749ef72c1b6b118bba37076
2014-10-17coverity#706591 Uncaught exceptionCaolán McNamara2-2/+3
Change-Id: I9b705664c3814aea5c433526ad147a8ab11c2d0f
2014-10-14bff: terminate on SAXException on malformed inputCaolán McNamara1-1/+22
SAXException thrown and not caught Change-Id: I874ffbcd457e102b572f398f4e531f4be30ca3d3
2014-10-10ZipOutputStream: No need to explicitly set default valuesMatúš Kukan3-22/+2
Change-Id: Ia3a20e0692e658d847e1b825fc97e32ac8a1854b
2014-10-10Split ZipPackageFolder::saveChild into two functionsMatúš Kukan2-290/+340
And make them static. Probably would be better to kill ContentInfo and add saveChild as pure virtual into ZipPackageEntry, from which are both ZipPackageFolder and ZipPackageStream inheriting. This will also create a bit more sensible call graph when profiling. Change-Id: If8151332cfa6359e8736c912b7a5633a9162ab36
2014-10-10package: ZipOutputStream: prefix membersMatúš Kukan2-133/+126
Change-Id: I9cc21ba87484560ec0db5424800dd67f80e00540
2014-10-10package: Add some 'const' and prefix membersMatúš Kukan5-34/+34
Change-Id: Id177c99ba8b91586cf61457ab2ef084af9c7f490
2014-09-30package: std::auto_ptr -> std::unique_ptrStephan Bergmann1-1/+1
Change-Id: Iac189fef77c930e35cbd20452027662127047e01
2014-09-29loplugin: cstylecastNoel Grandin2-9/+9
Change-Id: Iea517d2287bded4a702c73dfdd1f182023425d67
2014-09-11create a master document template typeCaolán McNamara1-0/+1
of application/vnd.oasis.opendocument.text-master-template with suffic otm https://lists.oasis-open.org/archives/office-comment/201002/msg00042.html desktop/icons/oasis-master-document-template.icns is just a copy of desktop/icons/oasis-master-document.icns because I can't draw Change-Id: I0d18c79c4c893e97505052884ee8be97d0f117a1 Reviewed-on: https://gerrit.libreoffice.org/11350 Reviewed-by: Caolán McNamara <caolanm@redhat.com> Tested-by: Caolán McNamara <caolanm@redhat.com>
2014-08-19java: use 'Integer.valueOf' instead of 'new Integer'Noel Grandin31-55/+55
Change-Id: Ia8befb8d69914ce971174fc5f2ffc0e2f506a940
2014-08-19java: use Boolean.valueOf instead of instantiating Boolean objectsNoel Grandin3-7/+7
Change-Id: Ie41d6b0170a035a694dd270c311a137fd1810e74
2014-08-14java: remove commented out codeNoel Grandin1-5/+0
Change-Id: I05c907a38b562231e968c17f14e09ef80e0a6ed1
2014-08-13update_pchThomas Arnhold1-0/+1
Change-Id: Ic1dae7aac2f4367b4196ba3128c0aea9be1fbbda