[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[patch] mem_node shrink #2
From: |
Dmitry Antipov |
Subject: |
[patch] mem_node shrink #2 |
Date: |
Tue, 27 Nov 2007 19:34:08 +0300 |
This is a second attempt with struct mem_node shrink stuff. It also touches
xrealloc due to the reasons described at
http://lists.gnu.org/archive/html/emacs-devel/2007-11/msg01583.html.
On 64-bit system with glibc malloc, the benefits are even more - for 48-bytes
mem_node, 56-bytes chunk is allocated in the best (normal) case, and 72-bytes
chunk is allocated rarely. This patch reduces mem_node to 40 bytes, which is an
exact allocation size in the most of the cases (rare worst cases are 56-bytes
chunks). That's for the case if GC_MALLOC_CHECK isn't defined, of course.
Dmitry
mem_node_shrink_2.patch
Description: Text Data
- [patch] mem_node shrink #2,
Dmitry Antipov <=