Open Bug 2081928 Opened 29 days ago Updated 28 days ago

Reserve room for four FlexItems when an empty FlexLine in nsFlexContainerFrame::GenerateFlexLines is about to...

Categories

(Core :: Performance: Automated Findings, defect)

defect

Tracking

()

UNCONFIRMED

People

(Reporter: perf-ai-bot, Unassigned, NeedInfo)

References

(Blocks 1 open bug)

Details

(Whiteboard: [foofrix:fe48b0b9-0e1f-4372-ae39-72730814e2de])

Attachments

(1 external file)

Reserve room for four FlexItems when an empty FlexLine in nsFlexContainerFrame::GenerateFlexLines is about to...

Problem

GenerateFlexLines appended real flex items into empty per-line nsTArray storage, making the first few items on small non-empty flex lines pay allocator and reallocation overhead; reserving lazily avoids that overhead without adding allocations for flex containers or lines that never receive real flex items.

Performance

  • Benchmark: speedometer3
  • Test: sp3-full
  • Component: Layout
  • Local Improvement: 0.31%

Validation

Blocks: speedometer3

Please move this bug to the correct component.

Once the Phabricator patch is ready for review, please commandeer it.

Flags: needinfo?(dholbert)

Reserve room for four FlexItems when an empty FlexLine in nsFlexContainerFrame::GenerateFlexLines is about to...

You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: