emacs-devel
[Top][All Lists]
Advanced

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

Re: Abbrev suggestions - feedback appreciated


From: Mathias Dahl
Subject: Re: Abbrev suggestions - feedback appreciated
Date: Sun, 17 May 2020 20:43:23 +0200


> I defined 10,000 dummy abbrevs (a1 .. a10000) and used the profiler to compare
> memory usage and... I did not get any conclusive results. And between runs I get different
> memory values reported.

The "memory" profiler doesn't really measure memory consumption, it
just uses memory-allocation calls as a poor-man's timer that ticks
frequently enough.

IOW, don't use the "memory" profiler if you need to profile memory
consumption.  We don't (yet) have such a beast in Emacs.

Hi Eli,

Thanks for the input.

I also did a benchmark-run (100 laps) on the two versions as well. Here are the results:

Old version

(20.113209378 361 11.676905440000002)

New version

(19.808761477999997 356 11.392537358999999)

I'll leave it up to Stefan and others to decide which of the versions of abbrev-suggest 
we should keep, if we want to include this in Emacs.

I'll send a new patch here soon.

Thanks!

/Mathias


reply via email to

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