[Top][All Lists]

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

Re: Tooltips GC overhead

From: Eli Zaretskii
Subject: Re: Tooltips GC overhead
Date: Mon, 03 Aug 2015 17:56:18 +0300

> From: Stefan Monnier <address@hidden>
> Date: Mon, 03 Aug 2015 06:34:52 -0400
> Cc: Paul Eggert <address@hidden>, address@hidden
> > The absolute value for `x-show-tip' is surely wrong.  `x-show-tip'
> > is responsible for 90% (or maybe 89%) of the allocations.
> A potential source of such errors is that we count the moment when
> "malloc" is called, and this can be misleading: you could do a thousand
> "cons" calls in x-show-tip, all satisfied from the list of free
> cons-cells, and then a single "cons" call elsewhere which finds the free
> list to be empty and hence does a "malloc" which will re-fill the free
> list with another thousand cons cells.

Indeed, when I looked into this issue, I tracked increments to
consing_since_gc.  Perhaps we should change the "memory" profiler to
do the same.

reply via email to

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