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

Unified Diff: third_party/WebKit/Source/core/editing/iterators/TextBufferBase.cpp

Issue 1687813002: Optimize Boundary Finding with Progressive Text Accumulation (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@text_accumulator_push
Patch Set: Created 4 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « third_party/WebKit/Source/core/editing/iterators/TextBufferBase.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/core/editing/iterators/TextBufferBase.cpp
diff --git a/third_party/WebKit/Source/core/editing/iterators/TextBufferBase.cpp b/third_party/WebKit/Source/core/editing/iterators/TextBufferBase.cpp
index 2a79a5c97c82a579c2a998dc21687b3ed7438e9e..15b5dd8c67c47c8fb425bee851e9a6a1cc410fd6 100644
--- a/third_party/WebKit/Source/core/editing/iterators/TextBufferBase.cpp
+++ b/third_party/WebKit/Source/core/editing/iterators/TextBufferBase.cpp
@@ -8,6 +8,7 @@ namespace blink {
TextBufferBase::TextBufferBase()
{
+ m_buffer.reserveCapacity(1024);
m_buffer.resize(capacity());
}
« no previous file with comments | « third_party/WebKit/Source/core/editing/iterators/TextBufferBase.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698