emacs-devel
[Top][All Lists]
Advanced

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

Re: [PATCH] extend map-into


From: Stefan Monnier
Subject: Re: [PATCH] extend map-into
Date: Wed, 09 Oct 2019 15:41:56 -0400
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux)

> I've repeated the same test going up two magnitude orders (1000000
> iterations). Still the execution time (~1.7secs) seems not distinguishable
> between the old and the implementation.

Great, then it looks like we have a winner!

> For my curiosity I've also tried to run it using
> `benchmark-run-compiled' with a very similar execution time as
> result.  I would have expected to have the unrolled version faster but
> apparently funcall is not the bottle-neck here.

Based on previous experience with defmethod's dispatch, I suspect that
the main bottleneck may be in the time it takes to turn the arglist into
a proper list and then to pass it to `apply` (those two steps happen
within the "wrappers" built by `defmethod` and which decide which method
to call).


        Stefan




reply via email to

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