Bug 481769

Summary: qpidc-devel is huge (~125MB)
Product: Red Hat Enterprise MRG Reporter: Matthew Farrellee <matt>
Component: qpid-cppAssignee: messaging-bugs <messaging-bugs>
Status: CLOSED CURRENTRELEASE QA Contact: Frantisek Reznicek <freznice>
Severity: medium Docs Contact:
Priority: low    
Version: 1.1CC: esammons, gsim
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2009-02-16 19:04:21 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Matthew Farrellee 2009-01-27 15:03:16 UTC
The qpidc-devel package is ~125MB in size. Seems strange to me. A quick
look through suggests that size comes from the included documentation.
Considered separating it out? Maybe follow the qpidc-devel[-core,-doc]
pattern.

$ rpm -q qpidc-devel
qpidc-devel-0.4.728142-1.fc10.i386

A little more digging on this show the bulk is coming from images.

$ du -sh /usr/share/doc/qpidc-devel-0.4.728142/html/
181M    /usr/share/doc/qpidc-devel-0.4.728142/html/

$ cp /usr/share/doc/qpidc-devel-0.4.728142/html/*.png tmp
$ du -sh tmp
146M    tmp

And many of the images look to be duplicates of one another.

$ du -s /usr/share/doc/qpidc-devel-0.4.728142/html/*.png | sort -n | grep ^456 | awk '{print $2}' | xargs eog

$ ^456^448
du -s /usr/share/doc/qpidc-devel-0.4.728142/html/*.png | sort -n | grep ^448 | awk '{print $2}' | xargs eog

$ du -s /usr/share/doc/qpidc-devel-0.4.728142/html/*.png | awk '{print $1}' | sort | uniq -c | sort -n | grep -e 448 -e 456
     22 448
     73 456

The images of size 456 and 448 make up 456*72 + 448*21 =~ 40MB (1 of each set is different).

Is there a way to generate the doc's images without creating the same image over and over?

Comment 1 Gordon Sim 2009-02-16 19:04:21 UTC
Now down to 3.4M (qpidc-devel-0.4.743861-1.el5.i386.rpm); closing as this does not require QE verification.