Closed Bug 1675639 Opened 4 years ago Closed 4 years ago

Try to save some memory in the custom properties code.

Categories

(Core :: CSS Parsing and Computation, defect)

defect

Tracking

()

RESOLVED FIXED
84 Branch
Tracking Status
firefox84 --- fixed

People

(Reporter: emilio, Assigned: emilio)

References

(Blocks 1 open bug)

Details

Attachments

(3 files)

Pages that use custom properties a lot may have a lot of these maps, but they're usually immutable, so we can try saving some memory here pretty easily.

This may help with bug 1656851.

New versions have shrink_to_fit().

Depends on D96130

Pushed by ealvarez@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/3d38566d80c6
Don't waste string space before making values immutable. r=boris
https://hg.mozilla.org/integration/autoland/rev/270207ea42c1
Update indexmap. r=boris
https://hg.mozilla.org/integration/autoland/rev/9a7b394ca845
Shrink custom property maps before making them immutable. r=boris
Attachment #9186134 - Attachment description: Bug 1675639 - Update indexmap. r=#style → Bug 1675639 - Update indexmap. r=boris
Flags: needinfo?(emilio)
Pushed by ealvarez@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/7ca763fe7152
Don't waste string space before making values immutable. r=boris
https://hg.mozilla.org/integration/autoland/rev/747cee56ec57
Update indexmap. r=boris
https://hg.mozilla.org/integration/autoland/rev/a933cf128e64
Shrink custom property maps before making them immutable. r=boris
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: