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

Issue 555813003: Shrink Document::parseQualifiedName a bit. (Closed)

Created:
6 years, 3 months ago by Daniel Bratell
Modified:
6 years, 3 months ago
Reviewers:
fs
CC:
blink-reviews, blink-reviews-dom_chromium.org, dglazkov+blink, sof, eae+blinkwatch, rwlbuis
Base URL:
https://chromium.googlesource.com/chromium/blink.git@master
Project:
blink
Visibility:
Public.

Description

Shrink Document::parseQualifiedName a bit. It duplicated a large code chunk by using a templated function full of generic code both for UChar and LChar. By extracting the generic code to the caller the amount of duplicate code was greatly reduced. With clang the function shrunk from 5 KB to 2.5 KB (which is still large but not crazy large). ----------------------------------------------------------------------------------------------------------------------- -2196 - Source: /home/bratell/src/chromium/src/third_party/WebKit/Source/core/dom/Document.cpp - (gained 0, lost 2196) ----------------------------------------------------------------------------------------------------------------------- Shrunk symbols: -2196: blink::Document::parseQualifiedName(WTF::AtomicString const&, WTF::AtomicString&, WTF::AtomicString&, blink::ExceptionState&) type=t, (was 4808 bytes, now 2612 bytes) BUG= R=fs@opera.com Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=182043

Patch Set 1 : Refactored parseQualifiedName. #

Total comments: 3

Patch Set 2 : Document::parseQualifiedName better names #

Unified diffs Side-by-side diffs Delta from patch set Stats (+63 lines, -36 lines) Patch
M Source/core/dom/Document.cpp View 1 4 chunks +63 lines, -36 lines 0 comments Download

Messages

Total messages: 9 (3 generated)
Daniel Bratell
Followup to https://codereview.chromium.org/387313002/ It's not very beautiful. Maybe there is a better way of doing ...
6 years, 3 months ago (2014-09-10 16:40:27 UTC) #3
Daniel Bratell
Followup to https://codereview.chromium.org/387313002/ It's not very beautiful. Maybe there is a better way of doing ...
6 years, 3 months ago (2014-09-10 16:40:29 UTC) #4
fs
https://codereview.chromium.org/555813003/diff/20001/Source/core/dom/Document.cpp File Source/core/dom/Document.cpp (right): https://codereview.chromium.org/555813003/diff/20001/Source/core/dom/Document.cpp#newcode4210 Source/core/dom/Document.cpp:4210: enum ParseQualifiedNameException { Lots of "Exception" here, maybe it'd ...
6 years, 3 months ago (2014-09-11 09:17:48 UTC) #5
fs
lgtm
6 years, 3 months ago (2014-09-15 16:20:18 UTC) #6
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patchset/555813003/40001
6 years, 3 months ago (2014-09-16 08:15:23 UTC) #8
commit-bot: I haz the power
6 years, 3 months ago (2014-09-16 09:32:34 UTC) #9
Message was sent while issue was closed.
Committed patchset #2 (id:40001) as 182043

Powered by Google App Engine
This is Rietveld 408576698