[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Question about memory usage
From: |
Stefan Monnier |
Subject: |
Re: Question about memory usage |
Date: |
Tue, 03 Apr 2018 17:18:39 -0400 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux) |
>> But shouldn't Emacs reuse the memory from previous loop iteration
>> instead of allocating it?
> That depends on the heap fragmentation and the efficiency of the
> memory allocating functions to deal with fragmentation.
The elements of buffer-undo-list in this case are just cons cells (and
immediate integers and nil), IIUC so I don't see why fragmentation would
get in the way: the previous cons-cell of the buffer-undo-list of the
previous iterations, reclaimed by the GC, should be readily reusable.
Stefan
- Re: Question about memory usage, (continued)
- Re: Question about memory usage, Eli Zaretskii, 2018/04/03
- Re: Question about memory usage, Michał Kondraciuk, 2018/04/03
- Re: Question about memory usage, Eli Zaretskii, 2018/04/04
- Re: Question about memory usage, Michał Kondraciuk, 2018/04/05
- Re: Question about memory usage, Eli Zaretskii, 2018/04/05
- Re: Question about memory usage, Stefan Monnier, 2018/04/05
- Re: Question about memory usage, Michał Kondraciuk, 2018/04/07
- Re: Question about memory usage, Eli Zaretskii, 2018/04/07
- Re: Question about memory usage, Stefan Monnier, 2018/04/07
- Re: Question about memory usage, Michał Kondraciuk, 2018/04/07
- Re: Question about memory usage,
Stefan Monnier <=
- Re: Question about memory usage, Eli Zaretskii, 2018/04/04
- Re: Question about memory usage, Stefan Monnier, 2018/04/04