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

Issue 346033003: [XHR] Move bools to end of class declaration for better padding (Closed)

Created:
6 years, 6 months ago by maheshkk
Modified:
6 years, 6 months ago
Reviewers:
sof, Inactive, eseidel
CC:
blink-reviews
Base URL:
https://chromium.googlesource.com/chromium/blink.git@master
Project:
blink
Visibility:
Public.

Description

[XHR] Move bools to end of class declaration for better padding Move all 7 bool members of class XHRHttpRequest to end of declaration. This results in better padding and reduces class size by 16 bytes. Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=176859

Patch Set 1 #

Total comments: 12

Patch Set 2 : Review comments #

Patch Set 3 : Move bools to end of class declaration for better padding #

Unified diffs Side-by-side diffs Delta from patch set Stats (+17 lines, -18 lines) Patch
M Source/core/xml/XMLHttpRequest.h View 1 2 4 chunks +10 lines, -11 lines 0 comments Download
M Source/core/xml/XMLHttpRequest.cpp View 1 2 2 chunks +7 lines, -7 lines 0 comments Download

Messages

Total messages: 16 (0 generated)
maheshkk
PTAL
6 years, 6 months ago (2014-06-21 00:01:12 UTC) #1
Inactive
For the record, I don't know that it is worth having flags here (and thus ...
6 years, 6 months ago (2014-06-21 00:40:41 UTC) #2
Inactive
https://codereview.chromium.org/346033003/diff/1/Source/core/xml/XMLHttpRequest.h File Source/core/xml/XMLHttpRequest.h (right): https://codereview.chromium.org/346033003/diff/1/Source/core/xml/XMLHttpRequest.h#newcode236 Source/core/xml/XMLHttpRequest.h:236: u_int8_t m_xhrFlags; On 2014/06/21 00:40:41, Chris Dumez wrote: > ...
6 years, 6 months ago (2014-06-21 00:51:21 UTC) #3
maheshkk
Thanks Chris for review! I shall upload a new patch this weekend. https://codereview.chromium.org/346033003/diff/1/Source/core/xml/XMLHttpRequest.h File Source/core/xml/XMLHttpRequest.h ...
6 years, 6 months ago (2014-06-21 01:58:41 UTC) #4
Inactive
On 2014/06/21 01:58:41, maheshkk wrote: > Thanks Chris for review! I shall upload a new ...
6 years, 6 months ago (2014-06-22 13:06:09 UTC) #5
maheshkk
On 2014/06/22 13:06:09, OOO until June 25 wrote: > On 2014/06/21 01:58:41, maheshkk wrote: > ...
6 years, 6 months ago (2014-06-22 15:14:27 UTC) #6
maheshkk
On 2014/06/22 13:06:09, OOO until June 25 wrote: > On 2014/06/21 01:58:41, maheshkk wrote: > ...
6 years, 6 months ago (2014-06-22 15:21:44 UTC) #7
maheshkk
Chris, so like you mentioned, using bitfields instead of bitmasks has same memory benefits but ...
6 years, 6 months ago (2014-06-23 18:32:16 UTC) #8
eseidel
If you're going to do this, please just use a bitfield. bool m_foo : 1; ...
6 years, 6 months ago (2014-06-23 20:03:47 UTC) #9
eseidel
How many XHR requests do we ever have? I dobut we ever have enough that ...
6 years, 6 months ago (2014-06-23 20:04:54 UTC) #10
sof
Writing your class declarations with bools last to reduce padding is not a bad convention ...
6 years, 6 months ago (2014-06-24 08:51:47 UTC) #11
maheshkk
On 2014/06/24 08:51:47, sof wrote: > Writing your class declarations with bools last to reduce ...
6 years, 6 months ago (2014-06-24 15:43:16 UTC) #12
sof
lgtm
6 years, 6 months ago (2014-06-24 16:01:44 UTC) #13
maheshkk
The CQ bit was checked by mahesh.kk@samsung.com
6 years, 6 months ago (2014-06-24 16:02:55 UTC) #14
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/mahesh.kk@samsung.com/346033003/40002
6 years, 6 months ago (2014-06-24 16:03:31 UTC) #15
commit-bot: I haz the power
6 years, 6 months ago (2014-06-24 17:58:20 UTC) #16
Message was sent while issue was closed.
Change committed as 176859

Powered by Google App Engine
This is Rietveld 408576698