diff options
| author | Dmitry Antipov | 2012-07-20 20:05:47 +0400 |
|---|---|---|
| committer | Dmitry Antipov | 2012-07-20 20:05:47 +0400 |
| commit | 9928463dcdb0164477785e83406602065de79ef8 (patch) | |
| tree | 14d6b28885b7e333733ff4eb62275e6e425f81b3 /src/ChangeLog | |
| parent | f8643a6b9e35af22b69a84f83df5d9410de82f16 (diff) | |
| download | emacs-9928463dcdb0164477785e83406602065de79ef8.tar.gz emacs-9928463dcdb0164477785e83406602065de79ef8.zip | |
Add indirection counting to speed up Fkill_buffer.
* buffer.h (struct buffer): New member.
* buffer.c (Fget_buffer_create): Set indirection counter to 0.
(Fmake_indirect_buffer): Set indirection counter to -1, increment
base buffer indirection counter.
(compact_buffer): If ENABLE_CHECKING, verify indirection counters.
(Fkill_buffer): Adjust indirection counters as needed, don't walk
through buffer list if indirection counter is 0.
Diffstat (limited to 'src/ChangeLog')
| -rw-r--r-- | src/ChangeLog | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/src/ChangeLog b/src/ChangeLog index d7d02a2262a..e90e48ee9dc 100644 --- a/src/ChangeLog +++ b/src/ChangeLog | |||
| @@ -1,5 +1,16 @@ | |||
| 1 | 2012-07-20 Dmitry Antipov <dmantipov@yandex.ru> | 1 | 2012-07-20 Dmitry Antipov <dmantipov@yandex.ru> |
| 2 | 2 | ||
| 3 | Add indirection counting to speed up Fkill_buffer. | ||
| 4 | * buffer.h (struct buffer): New member. | ||
| 5 | * buffer.c (Fget_buffer_create): Set indirection counter to 0. | ||
| 6 | (Fmake_indirect_buffer): Set indirection counter to -1, increment | ||
| 7 | base buffer indirection counter. | ||
| 8 | (compact_buffer): If ENABLE_CHECKING, verify indirection counters. | ||
| 9 | (Fkill_buffer): Adjust indirection counters as needed, don't walk | ||
| 10 | through buffer list if indirection counter is 0. | ||
| 11 | |||
| 12 | 2012-07-20 Dmitry Antipov <dmantipov@yandex.ru> | ||
| 13 | |||
| 3 | Extend the value returned by Fgarbage_collect with heap statistics. | 14 | Extend the value returned by Fgarbage_collect with heap statistics. |
| 4 | * alloc.c (Qheap): New symbol. | 15 | * alloc.c (Qheap): New symbol. |
| 5 | (syms_of_alloc): DEFSYM it. | 16 | (syms_of_alloc): DEFSYM it. |