Closed Bug 653143 Opened 13 years ago Closed 13 years ago

Detect duplicates in omnijar

Categories

(Core :: Networking: JAR, defect)

x86
Linux
defect
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla7

People

(Reporter: taras.mozilla, Assigned: mwu)

References

Details

(Keywords: perf)

Attachments

(1 file, 1 obsolete file)

optimizejars.py should detect duplicate entries in omnijar and instead have multiple central directory items point at the same data.
Blocks: 647453
Keywords: perf
What duplicate entries are there? I know there were, but that should have gone with bug 620931.
(In reply to comment #1)
> What duplicate entries are there? I know there were, but that should have
> gone with bug 620931.

This bug was filed in response to the comment at https://bugzilla.mozilla.org/show_bug.cgi?id=647453#c14 which lists a bunch of duplicates.
This makes us spit out warnings about duplicate files during packaging. Here's the output I get on my linux64 opt local build:

chrome/browser/content/browser/places/bookmarkProperties2.xul
        is a duplicate of
chrome/browser/content/browser/places/bookmarkProperties.xul
---
chrome/toolkit/skin/classic/mozapps/passwordmgr/key.png
        is a duplicate of
chrome/toolkit/skin/classic/mozapps/passwordmgr/key-16.png
---
chrome/toolkit/skin/classic/mozapps/extensions/category-languages.png
        is a duplicate of
chrome/toolkit/skin/classic/mozapps/extensions/localeGeneric.png
---
chrome/toolkit/skin/classic/mozapps/extensions/themeGeneric.png
        is a duplicate of
chrome/toolkit/skin/classic/mozapps/extensions/category-themes.png
---
chrome/toolkit/skin/classic/mozapps/extensions/extensionGeneric.png
        is a duplicate of
chrome/toolkit/skin/classic/mozapps/extensions/category-extensions.png
---
chrome/toolkit/skin/classic/mozapps/update/downloadButtons.png
        is a duplicate of
chrome/toolkit/skin/classic/mozapps/downloads/downloadButtons.png
---
chrome/toolkit/skin/classic/mozapps/plugins/notifyPluginOutdated.png
        is a duplicate of
chrome/toolkit/skin/classic/mozapps/plugins/notifyPluginBlocked.png
---
chrome/toolkit/skin/classic/mozapps/plugins/notifyPluginCrashed.png
        is a duplicate of
chrome/toolkit/skin/classic/mozapps/plugins/pluginGeneric-16.png
---
chrome/toolkit/skin/classic/mozapps/plugins/notifyPluginGeneric.png
        is a duplicate of
chrome/toolkit/skin/classic/mozapps/plugins/pluginGeneric-16.png
---
chrome/toolkit/skin/classic/mozapps/xpinstall/xpinstallItemGeneric.png
        is a duplicate of
chrome/toolkit/skin/classic/mozapps/extensions/category-extensions.png
---
chrome/toolkit/skin/classic/global/icons/tabprompts-bgtexture.png
        is a duplicate of
chrome/toolkit/skin/classic/mozapps/extensions/background-texture.png
---
chrome/toolkit/skin/classic/global/icons/notfound.png
        is a duplicate of
chrome/toolkit/skin/classic/global/icons/information-16.png
---
chrome/toolkit/skin/classic/global/arrow/arrow-rit-hov.gif
        is a duplicate of
chrome/toolkit/skin/classic/global/arrow/arrow-rit.gif
---
chrome/toolkit/skin/classic/global/arrow/arrow-lft-hov.gif
        is a duplicate of
chrome/toolkit/skin/classic/global/arrow/arrow-lft.gif
---
chrome/toolkit/skin/classic/global/console/bullet-question.png
        is a duplicate of
chrome/toolkit/skin/classic/global/icons/information-16.png
---
chrome/toolkit/skin/classic/global/console/bullet-error.png
        is a duplicate of
chrome/toolkit/skin/classic/global/icons/error-16.png
---
chrome/toolkit/skin/classic/global/console/bullet-warning.png
        is a duplicate of
chrome/toolkit/skin/classic/global/icons/warning-16.png
---
chrome/browser/skin/classic/browser/places/tag.png
        is a duplicate of
chrome/toolkit/skin/classic/mozapps/places/tagContainerIcon.png
---
chrome/en-US/locale/en-US/global-platform/win/intl.properties
        is a duplicate of
chrome/en-US/locale/en-US/global-platform/unix/intl.properties
---
chrome/en-US/locale/en-US/global-platform/win/platformKeys.properties
        is a duplicate of
chrome/en-US/locale/en-US/global-platform/unix/platformKeys.properties
---
chrome/en-US/locale/en-US/global-platform/unix/accessible.properties
        is a duplicate of
chrome/en-US/locale/en-US/global-platform/win/accessible.properties
---
chrome/en-US/locale/en-US/global-platform/mac/accessible.properties
        is a duplicate of
chrome/en-US/locale/en-US/global-platform/win/accessible.properties
---
chrome/en-US/locale/en-US/global-platform/mac/intl.properties
        is a duplicate of
chrome/en-US/locale/en-US/global-platform/unix/intl.properties
---
res/table-remove-column.gif
        is a duplicate of
res/table-remove-row.gif
---
res/table-remove-column-hover.gif
        is a duplicate of
res/table-remove-row-hover.gif
---
res/table-remove-row-active.gif
        is a duplicate of
res/table-remove-column-active.gif
---
chrome/browser/skin/classic/browser/feeds/feedIcon.png
        is a duplicate of
chrome/browser/skin/classic/browser/feeds/audioFeedIcon.png
---
chrome/browser/skin/classic/browser/feeds/videoFeedIcon16.png
        is a duplicate of
chrome/browser/skin/classic/browser/feeds/feedIcon16.png
---
chrome/browser/skin/classic/browser/feeds/audioFeedIcon16.png
        is a duplicate of
chrome/browser/skin/classic/browser/feeds/feedIcon16.png
---
chrome/browser/skin/classic/browser/feeds/videoFeedIcon.png
        is a duplicate of
chrome/browser/skin/classic/browser/feeds/audioFeedIcon.png
---
WARNING: Found 30 duplicate files
should sum up total wasted space too
Assignee: nobody → mwu
Attachment #534873 - Attachment is obsolete: true
Attachment #534894 - Flags: review?(tglek)
WARNING: Found 30 duplicate files taking 58018 bytes

Note that about half of it is compressed data, and the other half is overhead from zip metadata.
Comment on attachment 534894 [details] [diff] [review]
Detect duplicate files in optimizejars.py, v2

nice
Attachment #534894 - Flags: review?(tglek) → review+
I landed this on mozilla-inbound.
(In reply to comment #8)
> I landed this on mozilla-inbound.

I was waiting for fixes from bug 659407 to land before adding more noise to the build, but hey, why not..
Summary: Avoid duplicates in omnijar → Detect duplicates in omnijar
(In reply to comment #9)
> (In reply to comment #8)
> > I landed this on mozilla-inbound.
> 
> I was waiting for fixes from bug 659407 to land before adding more noise to the
> build, but hey, why not..

I can back it out if you really want, but let's be honest, our builds are not exactly silent.  ;-)
Pushed:
http://hg.mozilla.org/mozilla-central/rev/634f82bc05fb
Status: NEW → RESOLVED
Closed: 13 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla7
Version: unspecified → Trunk
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: