Issue 72852 - SRC680_m197: PDF Export takes longer to export image under m197 than OOo 2.1
Summary: SRC680_m197: PDF Export takes longer to export image under m197 than OOo 2.1
Status: CLOSED DUPLICATE of issue 72752
Alias: None
Product: gsl
Classification: Code
Component: code (show other issues)
Version: 680m197
Hardware: PC Linux, all
: P3 Trivial (vote)
Target Milestone: OOo 2.2
Assignee: philipp.lohmann
QA Contact: issues@gsl
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-12-21 16:25 UTC by Giuseppe Castagno (aka beppec56)
Modified: 2007-01-16 14:54 UTC (History)
2 users (show)

See Also:
Issue Type: DEFECT
Latest Confirmation in: ---
Developer Difficulty: ---


Attachments
Writer document to be used to test. (1.42 MB, application/vnd.oasis.opendocument.text)
2006-12-21 16:27 UTC, Giuseppe Castagno (aka beppec56)
no flags Details

Note You need to log in before you can comment on or make changes to this issue.
Description Giuseppe Castagno (aka beppec56) 2006-12-21 16:25:38 UTC
On m197 it takes longer then 2.1 to export to PDF the attached multipaged Writer
document containing images.

Thread reference on mail list:
http://gsl.openoffice.org/servlets/BrowseList?list=dev&by=thread&from=1608363

My system is  GNU/Linux Debian testing (etch), a 1.7 GHz notebook.

I set Linux as the system but I think this problem can exist in all the 
operating systems.
The file I'm going to attach can be used to carry out the tests.
It is composed of  3 images on a 3 pages document file, one image each page. The
images where added using the auto caption feature.
I tested it with PDF Options at their defaults.

If you export it under 2.1 it takes from 7 to 10 sec, under m197 it takes around
20 seconds.
If you add an empty page somewhere in the document, the elapsed time in m197
becomes 24, whereas in 2.1 stays the same.
Adding more pages the behavior worsen: with 5 empty pages and the 3 with the
images under 2.1 the elapsed time is almost the same and in m197 becomes around
45 seconds.

I tried to check what was going on, using the attached file as test case.
In m197 I put a break at: filter/source/pdf/pdfexport.cxx:714
(PDFExport::ImplExportPage page loop) 
and another at:
filter/source/pdf/pdfexport.cxx:1543 (PDFExport::ImplWriteBitmapEx image
export).

It seems that the images are always converted even if not present in the
page under process, so for 3 images, one per page and 3 pages you get 9
images exports, adding an empty page somewhere you got 12 images
exports, images exported for the empty page as well. All this is
consistent with the export time I measured.

The PDF document size between the two OOo versions are around the same and the
PDFs are viewable as well.

I checked only with writer documents, I don't know what happens with
Draw or Impress.
Comment 1 Giuseppe Castagno (aka beppec56) 2006-12-21 16:27:28 UTC
Created attachment 41632 [details]
Writer document to be used to test.
Comment 2 Giuseppe Castagno (aka beppec56) 2006-12-21 18:44:34 UTC
Set a more correct version.

I checked with m197 distributed snapshot, the problems is there as well.
Comment 3 philipp.lohmann 2006-12-22 11:44:24 UTC
target
Comment 4 philipp.lohmann 2006-12-22 12:56:44 UTC
add CC: aw, this sounds like it may be a side effect of aw024 (integrated in m194)
Comment 5 Armin Le Grand 2007-01-08 17:27:27 UTC
AW: Should be double to #i72752#, i will tell when a test version is available.
Comment 6 philipp.lohmann 2007-01-16 14:54:32 UTC
confirmed: 9 times ImplWriteBitmapEx in m197, 12 times with 4 pages
confirmed: with aw039 only 3 times called, regardless of 3 or four pages.

So this indeed is fixed with issue 72752

*** This issue has been marked as a duplicate of 72752 ***
Comment 7 philipp.lohmann 2007-01-16 14:54:57 UTC
closing