[Webkit-unassigned] [Bug 118891] New: Make PerformanceTests/Layout/line-layout.html 2% faster

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Thu Jul 18 22:06:42 PDT 2013


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

           Summary: Make PerformanceTests/Layout/line-layout.html 2%
                    faster
           Product: WebKit
           Version: 528+ (Nightly build)
          Platform: Unspecified
        OS/Version: Unspecified
            Status: NEW
          Keywords: BlinkMergeCandidate
          Severity: Normal
          Priority: P2
         Component: Layout and Rendering
        AssignedTo: webkit-unassigned at lists.webkit.org
        ReportedBy: rniwa at webkit.org
                CC: hyatt at apple.com, mitz at webkit.org,
                    barraclough at apple.com, enrica at apple.com


Merge https://chromium.googlesource.com/chromium/blink/+/5d93a708887e75f0157ed95ecdea9dfd1b2b4a09

I was looking at this performance test in pprof or an unrelated reason and
noticed that we were spending 2% of our time clearing a Vector. Rather than
clearing the Vector, we can just set its size to 0 and avoid calling malloc and
free for each iteration of the loop. The Vector is held in a local variable, so
we'll reclaim its storage when the function returns.

-- 
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