From: Eli Zaretskii <eliz@gnu.org>
To: No Wayman <iarchivedmywholelife@gmail.com>
Cc: 70686@debbugs.gnu.org
Subject: bug#70686: 30.0.50; cl--position is slow
Date: Wed, 01 May 2024 14:59:47 +0300 [thread overview]
Message-ID: <86bk5ppwss.fsf@gnu.org> (raw)
In-Reply-To: <87y18uwgsk.fsf@gmail.com> (message from No Wayman on Tue, 30 Apr 2024 19:51:23 -0400)
> From: No Wayman <iarchivedmywholelife@gmail.com>
> Date: Tue, 30 Apr 2024 19:51:23 -0400
>
>
> I've recently been avoiding cl-position, cl-remove-duplicates, and any other functions which use it internally. I realize there's a performance trade-off in for the flexibility such functions provide, but it may be worth investigating cl--position in particular. Today I replaced an instance of cl-remove-duplicates with an equivalent cl-loop for a 15x performance improvement at the cost of 2 lines of code.
Not sure why is this a bug report. If cl-position is too slow for
your application, you can always use something else, something that is
less generic and more tailored to your specific sequence type(s), no?
next prev parent reply other threads:[~2024-05-01 11:59 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-04-30 23:51 bug#70686: 30.0.50; cl--position is slow No Wayman
2024-05-01 11:59 ` Eli Zaretskii [this message]
2024-05-01 12:20 ` No Wayman
2024-05-01 12:34 ` Eli Zaretskii
2024-05-01 12:23 ` No Wayman
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
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=86bk5ppwss.fsf@gnu.org \
--to=eliz@gnu.org \
--cc=70686@debbugs.gnu.org \
--cc=iarchivedmywholelife@gmail.com \
/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 public inbox
https://git.savannah.gnu.org/cgit/emacs.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).