Closed Bug 1922563 Opened 1 year ago Closed 1 year ago

Investigate relevancy of optimizing storage for mozilla::dom::MathMLElement::MapGlobalMathMLAttributesInto()::values

Categories

(Core :: DOM: Core & HTML, task)

task

Tracking

()

RESOLVED FIXED
133 Branch
Tracking Status
firefox133 --- fixed

People

(Reporter: sergesanspaille, Assigned: sergesanspaille)

References

(Blocks 1 open bug)

Details

Attachments

(1 file)

Use some kind of prefix table to avoid storing redundant string. Also
Avoid storing an array of enum when tehre's a direct mapping between
enum values and loop index.

This result in a reduction of 352 byte in the resulting binary, so this
may not be worth the effort, but it was great fun to write that patch.

Attachment #9428849 - Attachment description: Bug 1922563 - Reduce memory foot print of mozilla::dom::MathMLElement::MapGlobalMathMLAttributesInto()::values → WIP: Bug 1922563 - Reduce memory foot print of mozilla::dom::MathMLElement::MapGlobalMathMLAttributesInto()::values
Attachment #9428849 - Attachment description: WIP: Bug 1922563 - Reduce memory foot print of mozilla::dom::MathMLElement::MapGlobalMathMLAttributesInto()::values → Bug 1922563 - Reduce memory foot print of mozilla::dom::MathMLElement::MapGlobalMathMLAttributesInto()::values
Pushed by sguelton@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/875fb891b6a9 Reduce memory foot print of mozilla::dom::MathMLElement::MapGlobalMathMLAttributesInto()::values r=emilio

Backed out for causing (part of commit message) build bustages on MathMLElement.cpp

Flags: needinfo?(sguelton)
Pushed by sguelton@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/c518c29f1c31 Reduce memory foot print of mozilla::dom::MathMLElement::MapGlobalMathMLAttributesInto()::values r=emilio
Pushed by sguelton@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/5f6ddacd157f Reduce memory foot print of mozilla::dom::MathMLElement::MapGlobalMathMLAttributesInto()::values r=emilio
Status: NEW → RESOLVED
Closed: 1 year ago
Resolution: --- → FIXED
Target Milestone: --- → 133 Branch
Flags: needinfo?(sguelton)
Component: General → DOM: Core & HTML
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: