emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: MPS: weak hash tables


From: Gerd Möllmann
Subject: Re: MPS: weak hash tables
Date: Mon, 08 Jul 2024 11:24:25 +0200
User-agent: Gnus/5.13 (Gnus v5.13)

Andrea Corallo <acorallo@gnu.org> writes:

> Helmut Eller <eller.helmut@gmail.com> writes:
>
>> On Sat, Jul 06 2024, Gerd Möllmann wrote:
>>
>>> Helmut, could you please see if that helps with the pi code?
>>
>> Yes, it helps:
>>
>>   ./src/emacs -Q -batch -l \
>>   ~/.emacs.d/elpa/elisp-benchmarks-1.14/elisp-benchmarks.el --eval \
>>   '(elisp-benchmarks-run "pidigits" nil 1)'
>>
>> finishes and requires 41.82 seconds compared to the 12.26 of the non-MPS
>> version.  And it uses something like 2.8 GB compared to 350 MB of the
>> non-MPS version (estimated by looking at the RES column in top).
>
> Such a difference in memory footprint is because MPS can't GC at the
> speed the main thread is allocating or for some other reason?

Yes, that's it basically. The client is allocating at a high rate,
and not much is dying until the end of that phase. Both together mean
that MPS is scanning like wild to make some room, without having a
chance to find something it can discard.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]