From: Michael Heerdegen via "Emacs development discussions." <emacs-devel@gnu.org>
To: emacs-devel@gnu.org
Subject: Re: Add a function for building sort predicates
Date: Thu, 01 Feb 2024 19:04:50 +0100 [thread overview]
Message-ID: <871q9wvz5p.fsf@web.de> (raw)
In-Reply-To: 87eddw9k5o.fsf@daniel-mendler.de
Daniel Mendler via "Emacs development discussions."
<emacs-devel@gnu.org> writes:
> That's a useful addition. Did you consider creating a macro, which will
> lead to a more efficient predicate
I did consider that, but I doubt that would lead to significantly more
efficient code because...
>,or is `make-sort-pred' intended to be used in scenarios with
>customizable predicate rules, such that the rules have to be processed
>at runtime?
the return value is a closure (last few lines in the code) where the
processing of the rules already had happened at definition time. Using
a macro the code would maybe be 10% faster or so... I thought it would
not be worth it.
Michael.
next prev parent reply other threads:[~2024-02-01 18:04 UTC|newest]
Thread overview: 16+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-02-01 17:06 Add a function for building sort predicates Michael Heerdegen
2024-02-01 17:19 ` Daniel Mendler via Emacs development discussions.
2024-02-01 17:26 ` Eli Zaretskii
2024-02-01 18:10 ` Michael Heerdegen via Emacs development discussions.
2024-02-01 19:09 ` Eli Zaretskii
2024-02-02 20:11 ` Michael Heerdegen
2024-02-03 2:55 ` Emanuel Berg
2024-02-03 7:08 ` Eli Zaretskii
2024-02-03 10:35 ` Michael Heerdegen
2024-02-01 18:04 ` Michael Heerdegen via Emacs development discussions. [this message]
2024-02-01 18:23 ` Daniel Mendler via Emacs development discussions.
2024-02-01 19:22 ` Michael Heerdegen
2024-02-01 20:19 ` Daniel Mendler via Emacs development discussions.
2024-02-01 22:48 ` [External] : " Drew Adams
2024-02-02 20:05 ` Michael Heerdegen
2024-02-02 22:30 ` Drew Adams
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=871q9wvz5p.fsf@web.de \
--to=emacs-devel@gnu.org \
--cc=michael_heerdegen@web.de \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.