Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(478)

Issue 2628903003: Inline FloatRect::enclosingIntRect (Closed)

Created:
3 years, 11 months ago by pdr.
Modified:
3 years, 11 months ago
Reviewers:
chrishtr, Xianzhu
CC:
ajuma+watch_chromium.org, blink-reviews, blink-reviews-platform-graphics_chromium.org, Rik, chromium-reviews, danakj+watch_chromium.org, dshwang, drott+blinkwatch_chromium.org, krit, f(malita), jbroman, Justin Novosad, kinuko+watch, pdr+graphicswatchlist_chromium.org, rwlbuis, Stephen Chennney
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Inline FloatRect::enclosingIntRect FloatRect::enclosingIntRect is hot on blink_perf.paint's paint offset microbenchmark. A similar change to inline LayoutRect::enclosingIntRect[1] was a large perf win [2] and this patch should have similar benefits. There are relatively few callers so the risk of binary bloat is low. enclosedIntRect and roundedIntRect are two additional candidates for inlining but I'd like to separate these changes so we can measure the impact (perf, binary) independently. [1] https://crrev.com/af2c8d1e6a537c356b4cf931bb5aca1e5f09f119 [2] https://chromeperf.appspot.com/group_report?rev=436323 BUG=678597 Review-Url: https://codereview.chromium.org/2628903003 Cr-Commit-Position: refs/heads/master@{#443132} Committed: https://chromium.googlesource.com/chromium/src/+/f76945dbb3afd556549b72544644a2e14fd32271

Patch Set 1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+7 lines, -9 lines) Patch
M third_party/WebKit/Source/platform/geometry/FloatRect.h View 3 chunks +7 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/platform/geometry/FloatRect.cpp View 1 chunk +0 lines, -7 lines 0 comments Download

Messages

Total messages: 12 (4 generated)
pdr.
3 years, 11 months ago (2017-01-11 21:59:30 UTC) #2
Xianzhu
lgtm (not an owner).
3 years, 11 months ago (2017-01-11 22:03:34 UTC) #3
chrishtr
lgtm
3 years, 11 months ago (2017-01-11 22:09:07 UTC) #5
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2628903003/1
3 years, 11 months ago (2017-01-11 22:10:39 UTC) #6
commit-bot: I haz the power
Committed patchset #1 (id:1) as https://chromium.googlesource.com/chromium/src/+/f76945dbb3afd556549b72544644a2e14fd32271
3 years, 11 months ago (2017-01-12 02:58:11 UTC) #9
pdr.
On 2017/01/12 at 02:58:11, commit-bot wrote: > Committed patchset #1 (id:1) as https://chromium.googlesource.com/chromium/src/+/f76945dbb3afd556549b72544644a2e14fd32271 Sadly, this ...
3 years, 11 months ago (2017-01-13 19:17:19 UTC) #10
Xianzhu
On 2017/01/13 19:17:19, pdr. wrote: > On 2017/01/12 at 02:58:11, commit-bot wrote: > > Committed ...
3 years, 11 months ago (2017-01-13 19:24:51 UTC) #11
pdr.
3 years, 11 months ago (2017-01-13 19:29:27 UTC) #12
Message was sent while issue was closed.
On 2017/01/13 at 19:24:51, wangxianzhu wrote:
> On 2017/01/13 19:17:19, pdr. wrote:
> > On 2017/01/12 at 02:58:11, commit-bot wrote:
> > > Committed patchset #1 (id:1) as
> >
https://chromium.googlesource.com/chromium/src/+/f76945dbb3afd556549b72544644...
> > 
> > Sadly, this had no effect on measurable performance:
> > https://chromeperf.appspot.com/group_report?rev=443132 (all false positives)
> > 
> > It did remove enclosingIntRect from my profile but that must be in the
noise.
> > I'm going to leave this patch in for now.
> 
> There might be improvement, but might be smaller than the threshold to
generate alerts.

Possibly. Our overall trajectory is looking good:
https://chromeperf.appspot.com/report?sid=3d729b9e37524438c24e621c525378ed556...

Looking forward to seeing what your latest patches do to this line. We may want
to space your patches out to tell the difference independently.

Powered by Google App Engine
This is Rietveld 408576698