[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[RFC] compact buffers when idle
From: |
Dmitry Antipov |
Subject: |
[RFC] compact buffers when idle |
Date: |
Wed, 18 Jul 2012 19:47:00 +0400 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:13.0) Gecko/20120614 Thunderbird/13.0.1 |
Core idea of this stuff is to run compact_buffer when idle, e.g. with:
(defun idle-compact-buffers (timeout)
(run-with-idle-timer
timeout t
'(lambda nil
(mapcar '(lambda (buffer)
(if (not (eq buffer (current-buffer)))
(compact-buffer buffer)))
(buffer-list)))))
This offloads Fgarbage_collect, especially if there are a few hundreds of
buffers.
Dmitry
compact_buffer.patch
Description: Text document
- [RFC] compact buffers when idle,
Dmitry Antipov <=