[Webkit-unassigned] [Bug 118891] Make PerformanceTests/Layout/line-layout.html 2.6-2.9% faster

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Fri Jul 19 01:39:57 PDT 2013


https://bugs.webkit.org/show_bug.cgi?id=118891





--- Comment #4 from Ryosuke Niwa <rniwa at webkit.org>  2013-07-19 01:39:52 PST ---
Created an attachment (id=207067)
 --> (https://bugs.webkit.org/attachment.cgi?id=207067&action=review)
More diff

Increasing the inline capacity to 64 didn't have any effect as expected.

Apparently this code is insanely hot. Just adding the code in clear() reduces the perf. win to 1.86%:

inline void TrailingObjects::clear()
{
    m_whitespace = 0;
    m_boxes.resize(0);
    if (m_boxes.size() > 200000)
        m_boxes.clear();
}

This is shockingly terrifying.

-- 
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.


More information about the webkit-unassigned mailing list