the cause of the linear slowing down was fixed
This commit is contained in:
+11
-12
@@ -171,18 +171,17 @@ and the shrunk current line, then the two lowest lines get aligned according to
|
||||
the topmost line (case 3).
|
||||
|
||||
Performance of the newer formatting algorithm should not depend on the height
|
||||
of the table (*beware*: something still makes table editing speed linear with
|
||||
respect to its height, perhaps syntax tracking or some uncovered parts of the
|
||||
formatting algorithm). The newer algorithm should also be consistent with
|
||||
respect to user editing experience. Indeed, as soon as a table should normally
|
||||
be edited linearly, row by row, dynamic formatting should be both fast
|
||||
of the table. The newer algorithm should also be consistent with respect to
|
||||
user editing experience. Indeed, as soon as a table should normally be edited
|
||||
row by row from the top to the bottom, dynamic formatting should be both fast
|
||||
(watching only three rows in a table, re-formatting only when the shrunk
|
||||
current row gets longer than any of the two rows above) and eager (a table
|
||||
should look formatted on every pressing on _Tab_ and _Enter_). However, the
|
||||
newer algorithm differs from the older algorithm when starting editing a
|
||||
mis-aligned table in an area where mis-aligned rows do not get into the
|
||||
viewport: in this case the newer algorithm formats the table partly, in the
|
||||
rows of the viewport, while the older algorithm re-formats the whole table on
|
||||
every pressing of _Tab_ and _Enter_. In this case the whole table can be
|
||||
formatted by pressing `gqq` in the Normal mode.
|
||||
should look formatted on every press on _Tab_ and _Enter_). However, the newer
|
||||
algorithm differs from the older algorithm when starting editing a mis-aligned
|
||||
table in an area where mis-aligned rows do not get into the viewport: in this
|
||||
case the newer algorithm will format the table partly (in the rows of the
|
||||
viewport) until one of the being edited cells grows in length to a value big
|
||||
enough to trigger the older algorithm and the whole table gets aligned. When
|
||||
partial formatting is not desirable, the whole table can be formatted by
|
||||
pressing `gqq` in the Normal mode.
|
||||
|
||||
|
||||
Reference in New Issue
Block a user