Closed
Bug 837715
Opened 12 years ago
Closed 12 years ago
Reduce compression rate for js source
Categories
(Core :: JavaScript Engine, defect)
Tracking
()
People
(Reporter: jrmuizel, Unassigned)
References
(Blocks 1 open bug)
Details
Attachments
(1 file)
623 bytes,
patch
|
Benjamin
:
review+
|
Details | Diff | Splinter Review |
This cuts the time to compress gaia-email-opt.js from 0.63 seconds to 0.33 seconds.
The result should still be smaller (391K from 321K before) than the compressing with snappy or lz4 (528K), but decompression time will be worse. Fortunately, this will only penalize Function.toSource() which I think is an ok trade off.
Attachment #709732 -
Flags: review?(benjamin)
Comment 1•12 years ago
|
||
Yes, definitely; penalize toSource() all you want. The real concern is memory usage. I'm CCing njn to see what he thinks about this. Could you possible see what the difference is memory-wise on desktop? There's a "script-sources" entry in about:memory.
Comment 2•12 years ago
|
||
"script-sources" numbers would be good. Having said that, B2G has tighter constraints than desktop regarding both time and memory, so I'm ok with whatever works best with B2G.
Reporter | ||
Comment 3•12 years ago
|
||
(In reply to :Benjamin Peterson from comment #1)
> Yes, definitely; penalize toSource() all you want. The real concern is
> memory usage. I'm CCing njn to see what he thinks about this. Could you
> possible see what the difference is memory-wise on desktop? There's a
> "script-sources" entry in about:memory.
I'd expect a similar difference: about 15%-20% worse. The difference for minified source will be less, the difference for unminified larger.
gaia-email-opt.js - 22% increase
jquery.min.js - 16% increase
ga.js - 11% increase
gmail.js - 14% increase
Updated•12 years ago
|
Attachment #709732 -
Flags: review?(benjamin) → review+
Reporter | ||
Comment 4•12 years ago
|
||
This should give a significant improvement in the email app start time.
blocking-b2g: --- → tef?
Reporter | ||
Updated•12 years ago
|
Blocks: Email-Startup
Updated•12 years ago
|
blocking-b2g: tef? → tef+
Comment 5•12 years ago
|
||
Please land asap!
Reporter | ||
Comment 6•12 years ago
|
||
blocking-b2g: tef+ → tef?
Updated•12 years ago
|
blocking-b2g: tef? → tef+
Comment 7•12 years ago
|
||
Status: NEW → RESOLVED
Closed: 12 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla21
Comment 8•12 years ago
|
||
https://hg.mozilla.org/releases/mozilla-b2g18/rev/2f50bc4f27ed
https://hg.mozilla.org/releases/mozilla-b2g18_v1_0_0/rev/6f06092e3628
status-b2g18:
--- → fixed
status-b2g18-v1.0.0:
--- → fixed
status-firefox19:
--- → wontfix
status-firefox20:
--- → wontfix
status-firefox21:
--- → fixed
Reporter | ||
Comment 9•12 years ago
|
||
Quite surprisingly, this seems to have eliminated the kraken win that happened in bug 836515. I can't think of any reason that would happen as I would've expected an improvement.
Comment 10•12 years ago
|
||
I dont' see any regression on http://arewefastyet.com/.
Updated•12 years ago
|
status-b2g18-v1.0.1:
--- → fixed
You need to log in
before you can comment on or make changes to this bug.
Description
•