Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: cc94af328c61638421cc65f8df2d25c57c36b3b2
      
https://github.com/WebKit/WebKit/commit/cc94af328c61638421cc65f8df2d25c57c36b3b2
  Author: Nathan Solomon <[email protected]>
  Date:   2025-12-10 (Wed, 10 Dec 2025)

  Changed paths:
    M 
Source/WebCore/layout/formattingContexts/inline/display/InlineDisplayContent.h

  Log Message:
  -----------
  Add Inline Storage for InlineDisplay's Lists of Boxes and Lines
https://bugs.webkit.org/show_bug.cgi?id=303582
rdar://165873944

Reviewed by Alan Baradlay and Antti Koivisto.

When InlineDisplay::Content is destructed, its members Vector<Line> and
Vector<Box> are frequently destructed in SP3 but with short list sizes.
The average list size during destruction is 2 for the Box Vector and
1 for the Line Vector during SP3. Profiling data shows that
the Vector holding Box data especially is seen taking
up samples freeing heap memory. We can simply add an inline storage
to the Vectors to limit the amount of heap allocations/deallocations
needed for this frequent destruction path during SP3.
A/B testing shows adding this changes progresses performance.

* 
Source/WebCore/layout/formattingContexts/inline/display/InlineDisplayContent.h:

Canonical link: https://commits.webkit.org/304234@main



To unsubscribe from these emails, change your notification settings at 
https://github.com/WebKit/WebKit/settings/notifications

Reply via email to