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

Issue 178313002: Vector::insert and Vector::append may use memcpy for POD types (Closed)

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.

Description

Vector::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 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+9 lines, -5 lines) Patch
M Source/wtf/Vector.h View 1 4 chunks +9 lines, -5 lines 0 comments Download

Messages

Total messages: 31 (0 generated)
w.bielawski
6 years, 10 months ago (2014-02-24 18:56:20 UTC) #1
darin (slow to review)
I think you should ask someone from wtf/OWNERS to review this.
6 years, 10 months ago (2014-02-24 20:26:14 UTC) #2
w.bielawski
6 years, 10 months ago (2014-02-25 08:09:59 UTC) #3
Mikhail
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* ...
6 years, 10 months ago (2014-02-25 14:11:31 UTC) #4
w.bielawski
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* ...
6 years, 10 months ago (2014-02-26 16:40:44 UTC) #5
Mikhail
IMO this patch makes sense, considering that we have 'Vector::appendVector' API. CC'ed WTF owners.
6 years, 9 months ago (2014-02-27 09:30:22 UTC) #6
eseidel
6 years, 9 months ago (2014-02-27 19:26:56 UTC) #7
eseidel
Could you expand your description to explain why?
6 years, 9 months ago (2014-02-27 19:27:37 UTC) #8
Erik Corry
LGTM
6 years, 9 months ago (2014-02-28 13:26:17 UTC) #9
Erik Corry
On 2014/02/27 19:27:37, eseidel wrote: > Could you expand your description to explain why? Presumably ...
6 years, 9 months ago (2014-02-28 13:26:44 UTC) #10
w.bielawski
The CQ bit was checked by testertelefonu@gmail.com
6 years, 9 months ago (2014-03-03 08:29:31 UTC) #11
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/testertelefonu@gmail.com/178313002/30001
6 years, 9 months ago (2014-03-03 08:29:44 UTC) #12
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 9 months ago (2014-03-03 09:12:52 UTC) #13
commit-bot: I haz the power
Retried try job too often on blink_presubmit for step(s) presubmit http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=blink_presubmit&number=17088
6 years, 9 months ago (2014-03-03 09:12:53 UTC) #14
Erik Corry
This one needs Eric's LGTM to move forward (or another WTF owner).
6 years, 9 months ago (2014-03-03 10:16:01 UTC) #15
w.bielawski
On 2014/03/03 09:12:53, I haz the power (commit-bot) wrote: > Retried try job too often ...
6 years, 9 months ago (2014-03-03 10:50:42 UTC) #16
eseidel
You still haven't explained why in the description.
6 years, 9 months ago (2014-03-03 19:20:07 UTC) #17
w.bielawski
On 2014/03/03 19:20:07, eseidel wrote: > You still haven't explained why in the description. OK, ...
6 years, 9 months ago (2014-03-04 08:42:49 UTC) #18
eseidel
lgtm OK, makes sense now, re-reading the code. Thanks.
6 years, 9 months ago (2014-03-04 08:47:05 UTC) #19
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/testertelefonu@gmail.com/178313002/30001
6 years, 9 months ago (2014-03-04 08:47:41 UTC) #20
eseidel
The CQ bit was unchecked by eseidel@chromium.org
6 years, 9 months ago (2014-03-04 08:48:04 UTC) #21
eseidel
I've expanded your CL description based on the comments and my reading of the code.
6 years, 9 months ago (2014-03-04 08:48:20 UTC) #22
eseidel
The CQ bit was checked by eseidel@chromium.org
6 years, 9 months ago (2014-03-04 08:48:24 UTC) #23
w.bielawski
On 2014/03/04 08:48:20, eseidel wrote: > I've expanded your CL description based on the comments ...
6 years, 9 months ago (2014-03-04 11:27:09 UTC) #24
eseidel
The description is what goes in the commit message. In Blink we try to have ...
6 years, 9 months ago (2014-03-04 17:16:21 UTC) #25
w.bielawski
On 2014/03/04 17:16:21, eseidel wrote: > The description is what goes in the commit message. ...
6 years, 9 months ago (2014-03-05 11:17:40 UTC) #26
Mads Ager (chromium)
On 2014/03/05 11:17:40, w.bielawski wrote: > On 2014/03/04 17:16:21, eseidel wrote: > > The description ...
6 years, 9 months ago (2014-03-05 12:10:15 UTC) #27
Mads Ager (chromium)
The CQ bit was unchecked by ager@chromium.org
6 years, 9 months ago (2014-03-05 12:10:22 UTC) #28
Mads Ager (chromium)
The CQ bit was checked by ager@chromium.org
6 years, 9 months ago (2014-03-05 12:10:46 UTC) #29
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/testertelefonu@gmail.com/178313002/30001
6 years, 9 months ago (2014-03-05 12:11:12 UTC) #30
commit-bot: I haz the power
6 years, 9 months ago (2014-03-05 12:12:30 UTC) #31
Message was sent while issue was closed.
Change committed as 168472

Powered by Google App Engine
This is Rietveld 408576698