aboutsummaryrefslogtreecommitdiff
path: root/editor.h
diff options
context:
space:
mode:
authorMarc André Tanner <mat@brain-dump.org>2014-07-21 17:55:55 +0200
committerMarc André Tanner <mat@brain-dump.org>2014-07-21 17:55:55 +0200
commit7abc15c8cb197ddae7050797631014e5f8f8775f (patch)
tree5c4fb16c85b775ada26b1c2605749552b36ee03a /editor.h
parent39f545e518d22b8f9e792902675e69e7592b806a (diff)
downloadvis-7abc15c8cb197ddae7050797631014e5f8f8775f.tar.gz
vis-7abc15c8cb197ddae7050797631014e5f8f8775f.tar.xz
Introduce cache layer
If multiple consecutive modifications happen to lie within the same piece perform the operations "in place". In particular no new pieces will be allocated if the changes occur at the end of the most recently modified piece. In this case the piece is simply extended. However changes in the middle of a piece involve memove(3) calls which might hurt performance. Since no new pieces are created the changes can't be undone on an individual basis. The frontend should therefore call 'editor_snapshot' at appropriate times inorder to invalidate the cache.
Diffstat (limited to 'editor.h')
0 files changed, 0 insertions, 0 deletions