Closed Bug 1838037 Opened 1 year ago Closed 1 year ago

Minify JS code in Firefox

Categories

(Firefox :: General, enhancement)

enhancement

Tracking

()

RESOLVED DUPLICATE of bug 1505119
Performance Impact ?

People

(Reporter: marco, Unassigned)

References

Details

(Keywords: memory-footprint)

The size of JS files has a great effect on memory usage (and probably startup performance), especially for modules that are loaded in every content process.

We are already minifying JS files on Android, https://searchfox.org/mozilla-central/rev/b91e9bef5a6d6f7b549fbc9cba70cb4665ed3866/toolkit/moz.configure#924.

Should we do the same with Firefox JS files?

Note this becomes more and more important as the number of content processes increases.

I found in a memory regression investigation that just deleting the comments in my TranslationsChild.sys.mjs file reduced memory usage by 4,608 bytes per content process.

I don't think there is a need to keep two bugs open here

Status: NEW → RESOLVED
Closed: 1 year ago
Duplicate of bug: 1505119
Resolution: --- → DUPLICATE
See Also: 1505119
You need to log in before you can comment on or make changes to this bug.