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

Issue 2258743002: Reserve Vector's capacity manually in CachedMetadata (Closed)

Created:
4 years, 4 months ago by yhirano
Modified:
4 years, 3 months ago
Reviewers:
haraken, esprehn
CC:
blink-reviews, blink-reviews-bindings_chromium.org, chromium-reviews, falken, gavinp+loader_chromium.org, horo+watch_chromium.org, Nate Chapin, jsbell+serviceworker_chromium.org, kinuko+serviceworker, loading-reviews+fetch_chromium.org, michaeln, nhiroki, serviceworker-reviews, tyoshino+watch_chromium.org, tzik
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Reserve Vector's capacity manually in CachedMetadata As CachedMetaData::m_serializedData is set only at the initialization timing, we can call Vector<char>::reserveCapacity to save memory consumption without loosing performance. This CL includes other cleanups: - Renaming methods, - Replacing error handling logic with DCHECKs, - Replacing unsigned with uint32_t. BUG=636462 Committed: https://crrev.com/2805c285bf5a0b681c2ad648c0d5506aa26985d1 Cr-Commit-Position: refs/heads/master@{#415544}

Patch Set 1 #

Patch Set 2 : fix #

Patch Set 3 : fix #

Patch Set 4 : rebase #

Total comments: 6

Patch Set 5 : fix #

Messages

Total messages: 50 (34 generated)
yhirano
4 years, 4 months ago (2016-08-18 06:10:48 UTC) #12
haraken
LGTM
4 years, 4 months ago (2016-08-18 06:15:19 UTC) #13
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/2258743002/60001
4 years, 3 months ago (2016-08-25 04:40:04 UTC) #17
commit-bot: I haz the power
Try jobs failed on following builders: linux_chromium_chromeos_compile_dbg_ng on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_chromeos_compile_dbg_ng/builds/252547)
4 years, 3 months ago (2016-08-25 04:47:14 UTC) #19
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/2258743002/60001
4 years, 3 months ago (2016-08-25 04:49:25 UTC) #21
commit-bot: I haz the power
Try jobs failed on following builders: win_chromium_rel_ng on master.tryserver.chromium.win (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.win/builders/win_chromium_rel_ng/builds/280824)
4 years, 3 months ago (2016-08-25 09:18:00 UTC) #23
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/2258743002/60001
4 years, 3 months ago (2016-08-25 09:18:54 UTC) #25
commit-bot: I haz the power
Try jobs failed on following builders: win_chromium_rel_ng on master.tryserver.chromium.win (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.win/builders/win_chromium_rel_ng/builds/280911)
4 years, 3 months ago (2016-08-25 13:08:11 UTC) #27
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/2258743002/60001
4 years, 3 months ago (2016-08-25 13:12:27 UTC) #29
commit-bot: I haz the power
Failed to apply patch for third_party/WebKit/Source/bindings/core/v8/V8ScriptRunner.cpp: While running git apply --index -3 -p1; error: patch ...
4 years, 3 months ago (2016-08-25 15:38:36 UTC) #31
esprehn
https://codereview.chromium.org/2258743002/diff/80001/third_party/WebKit/Source/core/fetch/CachedMetadata.cpp File third_party/WebKit/Source/core/fetch/CachedMetadata.cpp (right): https://codereview.chromium.org/2258743002/diff/80001/third_party/WebKit/Source/core/fetch/CachedMetadata.cpp#newcode14 third_party/WebKit/Source/core/fetch/CachedMetadata.cpp:14: DCHECK_GT(size, kDataStart); DCHECK(data) https://codereview.chromium.org/2258743002/diff/80001/third_party/WebKit/Source/core/fetch/CachedMetadata.cpp#newcode15 third_party/WebKit/Source/core/fetch/CachedMetadata.cpp:15: m_serializedData.reserveCapacity(size); reserveInitialCapacity https://codereview.chromium.org/2258743002/diff/80001/third_party/WebKit/Source/core/fetch/CachedMetadata.cpp#newcode25 third_party/WebKit/Source/core/fetch/CachedMetadata.cpp:25: ...
4 years, 3 months ago (2016-08-26 04:51:01 UTC) #37
yhirano
https://codereview.chromium.org/2258743002/diff/80001/third_party/WebKit/Source/core/fetch/CachedMetadata.cpp File third_party/WebKit/Source/core/fetch/CachedMetadata.cpp (right): https://codereview.chromium.org/2258743002/diff/80001/third_party/WebKit/Source/core/fetch/CachedMetadata.cpp#newcode14 third_party/WebKit/Source/core/fetch/CachedMetadata.cpp:14: DCHECK_GT(size, kDataStart); On 2016/08/26 04:51:01, esprehn wrote: > DCHECK(data) ...
4 years, 3 months ago (2016-08-26 08:50:54 UTC) #40
esprehn
lgtm
4 years, 3 months ago (2016-08-30 21:25:48 UTC) #43
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/2258743002/100001
4 years, 3 months ago (2016-08-31 00:43:40 UTC) #46
commit-bot: I haz the power
Committed patchset #5 (id:100001)
4 years, 3 months ago (2016-08-31 02:41:47 UTC) #48
commit-bot: I haz the power
4 years, 3 months ago (2016-08-31 02:43:05 UTC) #50
Message was sent while issue was closed.
Patchset 5 (id:??) landed as
https://crrev.com/2805c285bf5a0b681c2ad648c0d5506aa26985d1
Cr-Commit-Position: refs/heads/master@{#415544}

Powered by Google App Engine
This is Rietveld 408576698