aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/CellBuffer.cxx
diff options
context:
space:
mode:
authornyamatongwe <unknown>2013-04-19 16:27:21 +1000
committernyamatongwe <unknown>2013-04-19 16:27:21 +1000
commitc17ecd0761377ba11067ccfdd917c01aa8e7ed7c (patch)
tree448f2823f33a10d6a23cd6fe1da1622469f65576 /src/CellBuffer.cxx
parent92d4c0e3222dda625e991d17cda4af1181d6c6e3 (diff)
downloadscintilla-mirror-c17ecd0761377ba11067ccfdd917c01aa8e7ed7c.tar.gz
Using std::fill instead of a loop is much faster. As much as 4x on a large block.
Diffstat (limited to 'src/CellBuffer.cxx')
-rw-r--r--src/CellBuffer.cxx2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/CellBuffer.cxx b/src/CellBuffer.cxx
index 872616c21..316940621 100644
--- a/src/CellBuffer.cxx
+++ b/src/CellBuffer.cxx
@@ -10,6 +10,8 @@
#include <stdlib.h>
#include <stdarg.h>
+#include <algorithm>
+
#include "Platform.h"
#include "Scintilla.h"