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

Issue 201153006: Move element flags from ElementRareData to NodeRareData (Closed)

Created:
6 years, 9 months ago by Jens Widell
Modified:
6 years, 9 months ago
CC:
blink-reviews, sof, eae+blinkwatch, dglazkov+blink, adamk+blink_chromium.org, Inactive, rwlbuis
Base URL:
https://chromium.googlesource.com/chromium/blink.git@master
Visibility:
Public.

Description

Move element flags from ElementRareData to NodeRareData By doing this, they can be packed together with the existing bit-field member NodeRareData::m_connectedFrameCount, and save some space. Impact according to sizeof(ElementRareData), on 64-bit Linux (GCC and Clang alike,) is a modest 8 byte saving, from 144 bytes to 136 bytes. BUG= Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=169644

Patch Set 1 #

Patch Set 2 : rebased and reworked #

Patch Set 3 : rebased (another ElementFlag added upstream) #

Unified diffs Side-by-side diffs Delta from patch set Stats (+22 lines, -13 lines) Patch
M Source/core/dom/Element.h View 1 2 1 chunk +2 lines, -0 lines 0 comments Download
M Source/core/dom/ElementRareData.h View 1 2 3 chunks +0 lines, -6 lines 0 comments Download
M Source/core/dom/ElementRareData.cpp View 1 1 chunk +0 lines, -1 line 0 comments Download
M Source/core/dom/NodeRareData.h View 1 2 2 chunks +13 lines, -5 lines 0 comments Download
M Source/core/dom/NodeRareData.cpp View 1 2 chunks +7 lines, -1 line 0 comments Download

Messages

Total messages: 18 (0 generated)
Jens Widell
Please take a look. This is a minor change that leads to an equally minor ...
6 years, 9 months ago (2014-03-17 15:09:57 UTC) #1
Inactive
lgtm +esprehn in cc so that he sees the change.
6 years, 9 months ago (2014-03-17 15:19:14 UTC) #2
eseidel
MSVC is bad a packing... you shoud be sure to run this throgh teh try ...
6 years, 9 months ago (2014-03-17 15:43:28 UTC) #3
Jens Widell
On 2014/03/17 15:43:28, eseidel wrote: > MSVC is bad a packing... you shoud be sure ...
6 years, 9 months ago (2014-03-17 15:52:45 UTC) #4
Daniel Bratell
On 2014/03/17 15:52:45, Jens Lindström wrote: > On 2014/03/17 15:43:28, eseidel wrote: > > MSVC ...
6 years, 9 months ago (2014-03-17 16:32:46 UTC) #5
Daniel Bratell
I can add that these objects are rare on most sites, but happened to be ...
6 years, 9 months ago (2014-03-17 20:29:10 UTC) #6
Jens Widell
On 2014/03/17 15:43:28, eseidel wrote: > MSVC is bad a packing... you shoud be sure ...
6 years, 9 months ago (2014-03-18 08:55:01 UTC) #7
esprehn
ElementRareData looks really different after https://src.chromium.org/viewvc/blink?revision=169426&view=revision I think you should move the unsigned m_flags up ...
6 years, 9 months ago (2014-03-18 09:23:03 UTC) #8
Jens Widell
On 2014/03/18 09:23:03, esprehn wrote: > ElementRareData looks really different after > https://src.chromium.org/viewvc/blink?revision=169426&view=revision It certainly ...
6 years, 9 months ago (2014-03-18 09:34:47 UTC) #9
Jens Widell
On 2014/03/18 09:34:47, Jens Lindström wrote: > On 2014/03/18 09:23:03, esprehn wrote: > > ElementRareData ...
6 years, 9 months ago (2014-03-18 11:49:25 UTC) #10
esprehn
Lgtm, thanks!
6 years, 9 months ago (2014-03-20 08:07:08 UTC) #11
Jens Widell
The CQ bit was checked by jl@opera.com
6 years, 9 months ago (2014-03-20 08:52:17 UTC) #12
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/jl@opera.com/201153006/20001
6 years, 9 months ago (2014-03-20 08:52:23 UTC) #13
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 9 months ago (2014-03-20 09:27:21 UTC) #14
commit-bot: I haz the power
Try jobs failed on following builders: tryserver.blink on mac_blink_rel
6 years, 9 months ago (2014-03-20 09:27:21 UTC) #15
Jens Widell
The CQ bit was checked by jl@opera.com
6 years, 9 months ago (2014-03-20 10:33:37 UTC) #16
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/jl@opera.com/201153006/40001
6 years, 9 months ago (2014-03-20 10:33:41 UTC) #17
commit-bot: I haz the power
6 years, 9 months ago (2014-03-20 11:57:13 UTC) #18
Message was sent while issue was closed.
Change committed as 169644

Powered by Google App Engine
This is Rietveld 408576698