aboutsummaryrefslogtreecommitdiffhomepage
path: root/TODO
diff options
context:
space:
mode:
authorRobin Haberkorn <robin.haberkorn@googlemail.com>2017-03-07 23:53:03 +0100
committerRobin Haberkorn <robin.haberkorn@googlemail.com>2017-03-08 12:55:06 +0100
commitf4da329a1afa4808cbd47182a86cc2b19bcaa984 (patch)
tree378ac7451880499471933703b5f7477a630eed33 /TODO
parent0a0d0b7cd9ce2942d5194762478a4e24cd05eca4 (diff)
downloadsciteco-f4da329a1afa4808cbd47182a86cc2b19bcaa984.tar.gz
undo stack reorganized into a stack of undo token lists
* in a flat list of undo tokens, we need to store the program counter (ie. command line position) that the undo token corresponds to. Since in general there is more than one undo token per input character, this stored PCs redundantly. * For input characters with no undo tokens (only applies to NOPs like space in the command line macro), this needs one more pointer than before. * In case of 1 undo token per input character, the new implementation uses approx. the same memory. * In the most common case of more than one undo token per input character, this saves at least 4 bytes per undo token. * In large macros and long loops the effect is especially pronounced. E.g. 500000<%A> will use 8MB less memory with the new implementation.
Diffstat (limited to 'TODO')
-rw-r--r--TODO5
1 files changed, 2 insertions, 3 deletions
diff --git a/TODO b/TODO
index 9748f6f..4f93a5e 100644
--- a/TODO
+++ b/TODO
@@ -84,6 +84,8 @@ Known Bugs:
Also, auto-completions within string-building constructs
(except Q-Reg specs) should generally be disabled since
the result will be unpredictable.
+ * Shutdown seems to hang after generating lots of undo tokens:
+ 500000<%A>EX$$
Features:
* Auto-indention could be implemented via context-sensitive
@@ -289,9 +291,6 @@ Optimizations:
* RTTI could be disabled (-fno-rtti). It's only still required
because of StdError() for handling arbitrary C++ exceptions.
This is probably not required.
- * The position can be eliminated from UndoTokens by
- rewriting the UndoStack into a stack of UndoToken lists.
- Should be a significant memory reduction in interactive mode.
* RBTrees define an entry field for storing node color.
This can be avoided on most
platforms where G_MEM_ALIGN > 1 by encoding the color in the