From 8a99dc9ffbd5f9fa76ed360b4ca50a20bb17af48 Mon Sep 17 00:00:00 2001 From: nyamatongwe Date: Sun, 4 Dec 2005 00:46:47 +0000 Subject: Optimisations that help for documents with long lines and many control characters. Set of style bits set maintained in line layout so indicator drawing code can quickly determine if an indicator is drawn at all on a line. Drawing loops exited after reach right hand side of window. Widths of control character symbols cached while laying out line. Small tweaks to avoid overhead inside loops. --- src/Editor.h | 1 + 1 file changed, 1 insertion(+) (limited to 'src/Editor.h') diff --git a/src/Editor.h b/src/Editor.h index 5370f5b2e..f779e21cc 100644 --- a/src/Editor.h +++ b/src/Editor.h @@ -64,6 +64,7 @@ public: int edgeColumn; char *chars; unsigned char *styles; + int styleBitsSet; char *indicators; int *positions; char bracePreviousStyles[2]; -- cgit v1.2.3