Skip to content
This repository has been archived by the owner on Nov 3, 2021. It is now read-only.

Commit

Permalink
Revert "Bug 962976 - Use a blacklist to avoid compressing specific fi…
Browse files Browse the repository at this point in the history
…le types which are already compressed r=yurenju"

This reverts commit 6c99ac2.
  • Loading branch information
yurenju committed Jan 29, 2014
1 parent e9fdf38 commit 8ed9198
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions build/webapp-zip.js
Original file line number Diff line number Diff line change
Expand Up @@ -62,13 +62,7 @@ function getCompression(pathInZip, webapp) {
webapp.metaData.zip.mmap_files.indexOf(pathInZip) !== -1) {
return Ci.nsIZipWriter.COMPRESSION_NONE;
} else {
// Don't store some files compressed since that's not giving us any
// benefit but costs cpu when reading from the zip.
var ext = pathInZip.split('.').reverse()[0].toLowerCase();
return (["gif", "jpg", "jpeg", "png",
"ogg", "opus"].indexOf(ext) !== -1)
? Ci.nsIZipWriter.COMPRESSION_NONE
: Ci.nsIZipWriter.COMPRESSION_BEST;
return Ci.nsIZipWriter.COMPRESSION_BEST;
}
}

Expand Down

0 comments on commit 8ed9198

Please sign in to comment.