|
|
Created:
6 years, 10 months ago by w.bielawski Modified:
6 years, 9 months ago CC:
blink-reviews, loislo+blink_chromium.org, yurys+blink_chromium.org, abarth-chromium, adamk+blink_chromium.org, Inactive, Mikhail, eseidel, Nico, Chris Evans Base URL:
https://chromium.googlesource.com/chromium/blink@master Visibility:
Public. |
DescriptionVector::insert and Vector::append may use memcpy for POD types.
It will improve performance when POD types are copied, by providing
a missing implementation of VectorCopier and using it in
two places which were previously always taking the "new" allocation
path even though they could have used VectorCopier and used
memcpy for POD types.
NOTRY=true
Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=168472
Patch Set 1 #
Total comments: 2
Patch Set 2 : Corrections after review #Messages
Total messages: 31 (0 generated)
I think you should ask someone from wtf/OWNERS to review this.
https://codereview.chromium.org/178313002/diff/1/Source/wtf/Vector.h File Source/wtf/Vector.h (right): https://codereview.chromium.org/178313002/diff/1/Source/wtf/Vector.h#newcode166 Source/wtf/Vector.h:166: static void uninitializedCopy(const T* src, const T* srcEnd, U* dst) I'd change it to template<typename U> static void uninitializedCopy(const U* src, const U* srcEnd, T* dst) because the type 'T' is usually used as a native vector type and the type 'U' - as something else, otherwise it is a bit misleading imho.
https://codereview.chromium.org/178313002/diff/1/Source/wtf/Vector.h File Source/wtf/Vector.h (right): https://codereview.chromium.org/178313002/diff/1/Source/wtf/Vector.h#newcode166 Source/wtf/Vector.h:166: static void uninitializedCopy(const T* src, const T* srcEnd, U* dst) On 2014/02/25 14:11:32, mikhail.pozdnyakov wrote: > I'd change it to > > template<typename U> > static void uninitializedCopy(const U* src, const U* srcEnd, T* dst) > > because the type 'T' is usually used as a native vector type and the type 'U' - > as something else, otherwise it is a bit misleading imho. Done.
IMO this patch makes sense, considering that we have 'Vector::appendVector' API. CC'ed WTF owners.
Could you expand your description to explain why?
LGTM
On 2014/02/27 19:27:37, eseidel wrote: > Could you expand your description to explain why? Presumably memcpy is faster.
The CQ bit was checked by testertelefonu@gmail.com
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/testertelefonu@gmail.com/178313002/30001
The CQ bit was unchecked by commit-bot@chromium.org
Retried try job too often on blink_presubmit for step(s) presubmit http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=blink_pres...
This one needs Eric's LGTM to move forward (or another WTF owner).
On 2014/03/03 09:12:53, I haz the power (commit-bot) wrote: > Retried try job too often on blink_presubmit for step(s) presubmit > http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=blink_pres... eseidel do you accept this patch?
You still haven't explained why in the description.
On 2014/03/03 19:20:07, eseidel wrote: > You still haven't explained why in the description. OK, I just thought you've asked Erik for explanation.
lgtm OK, makes sense now, re-reading the code. Thanks.
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/testertelefonu@gmail.com/178313002/30001
The CQ bit was unchecked by eseidel@chromium.org
I've expanded your CL description based on the comments and my reading of the code.
The CQ bit was checked by eseidel@chromium.org
On 2014/03/04 08:48:20, eseidel wrote: > I've expanded your CL description based on the comments and my reading of the > code. Thanks. I wasn't aware that such expanded description is required.
The description is what goes in the commit message. In Blink we try to have descriptive commit messages in order to aid code archeology. This is a habit we inherited from WebKit (which requires a ChangeLog message with every change): http://www.webkit.org/coding/contributing.html#changelogs
On 2014/03/04 17:16:21, eseidel wrote: > The description is what goes in the commit message. In Blink we try to have > descriptive commit messages in order to aid code archeology. This is a habit > we inherited from WebKit (which requires a ChangeLog message with every change): > http://www.webkit.org/coding/contributing.html#changelogs Can win_layout be somehow skipped? Looks like problem with buildbot itself.
On 2014/03/05 11:17:40, w.bielawski wrote: > On 2014/03/04 17:16:21, eseidel wrote: > > The description is what goes in the commit message. In Blink we try to have > > descriptive commit messages in order to aid code archeology. This is a habit > > we inherited from WebKit (which requires a ChangeLog message with every > change): > > http://www.webkit.org/coding/contributing.html#changelogs > > Can win_layout be somehow skipped? Looks like problem with buildbot itself. This is all looking good. Let's get this in. I'll kick it in and watch the bots.
The CQ bit was unchecked by ager@chromium.org
The CQ bit was checked by ager@chromium.org
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/testertelefonu@gmail.com/178313002/30001
Message was sent while issue was closed.
Change committed as 168472 |