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

Issue 2620453002: Simplify and optimize String::format. (Closed)

Created:
3 years, 11 months ago by esprehn
Modified:
3 years, 11 months ago
CC:
blink-reviews, blink-reviews-wtf_chromium.org, chromium-reviews, Mikhail
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Simplify and optimize String::format. base::vsnprintf already handles the windows difference so we don't need the platform ifdefs. We can also optimistically format into the buffer and if it fits avoid formatting twice. Review-Url: https://codereview.chromium.org/2620453002 Cr-Commit-Position: refs/heads/master@{#442084} Committed: https://chromium.googlesource.com/chromium/src/+/8b39bd3c54837ff1bf5890fdf47ee21cf9b39398

Patch Set 1 #

Patch Set 2 : docs #

Unified diffs Side-by-side diffs Delta from patch set Stats (+30 lines, -28 lines) Patch
M third_party/WebKit/Source/wtf/text/WTFString.h View 1 1 chunk +2 lines, -1 line 0 comments Download
M third_party/WebKit/Source/wtf/text/WTFString.cpp View 2 chunks +28 lines, -27 lines 0 comments Download

Messages

Total messages: 15 (9 generated)
esprehn
3 years, 11 months ago (2017-01-06 03:56:29 UTC) #5
Charlie Harrison
Could we create an uninitialized StringImpl and format directly into the Impl's buffer to avoid ...
3 years, 11 months ago (2017-01-06 16:41:02 UTC) #8
esprehn
On 2017/01/06 at 16:41:02, csharrison wrote: > Could we create an uninitialized StringImpl and format ...
3 years, 11 months ago (2017-01-06 21:11:13 UTC) #9
Charlie Harrison
Makes sense. LGTM with the caveat that I'm pretty unfamiliar with the va_start/end/list macros.
3 years, 11 months ago (2017-01-06 21:13:55 UTC) #10
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/2620453002/20001
3 years, 11 months ago (2017-01-06 22:47:40 UTC) #12
commit-bot: I haz the power
3 years, 11 months ago (2017-01-06 22:52:57 UTC) #15
Message was sent while issue was closed.
Committed patchset #2 (id:20001) as
https://chromium.googlesource.com/chromium/src/+/8b39bd3c54837ff1bf5890fdf47e...

Powered by Google App Engine
This is Rietveld 408576698