all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Stefan Monnier <monnier@IRO.UMontreal.CA>
To: Aaron Jensen <aaronjensen@gmail.com>
Cc: 31853@debbugs.gnu.org
Subject: bug#31853: (27.0.50; binding case-fold-search is slow when there are many buffers)
Date: Sat, 30 Jun 2018 09:18:23 -0400	[thread overview]
Message-ID: <jwva7rc5sd1.fsf-monnier+bug#31853@gnu.org> (raw)
In-Reply-To: <CAHyO48ykJ1QFO4m+i2dF+uUobmcW0MQV9orgOSGq_ru=Mq3gaA@mail.gmail.com> (Aaron Jensen's message of "Fri, 15 Jun 2018 19:10:08 -0700")

> Is it possible to improve this somehow? In this instance it's actually
> org-mode that's binding case-fold-search in a tight loop in
> org-scan-tags.

BTW, I think that the idea that let-binding a dynamically-scoped var is
cheap is wrong.
It's basically only cheap when lexical-binding works as well ;-)

So regardless of whether we can speed it up like Eli did just now (by
only looping over the live buffers), the org-scan-tags code that
let-binds it within a tight loop should be fixed.


        Stefan





  parent reply	other threads:[~2018-06-30 13:18 UTC|newest]

Thread overview: 18+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-06-16  1:42 bug#31853: 27.0.50; binding case-fold-search is slow when there are many buffers Aaron Jensen
2018-06-16  2:10 ` bug#31853: (27.0.50; binding case-fold-search is slow when there are many buffers) Aaron Jensen
2018-06-16  6:51   ` bug#31853: 27.0.50; binding case-fold-search is slow when there are many buffers Eli Zaretskii
2018-06-30 13:18   ` Stefan Monnier [this message]
2018-06-30 13:53     ` bug#31853: (27.0.50; binding case-fold-search is slow when there are many buffers) Eli Zaretskii
2018-06-16  2:17 ` bug#31853: 27.0.50; binding case-fold-search is slow when there are many buffers Noam Postavsky
2018-06-16  6:52   ` Eli Zaretskii
2018-06-16 13:51     ` Noam Postavsky
2018-06-16  6:45 ` Eli Zaretskii
2018-06-16  7:39   ` Aaron Jensen
2018-06-16  7:53     ` Eli Zaretskii
2018-06-16 14:54       ` Aaron Jensen
2018-06-17 12:37         ` Aaron Jensen
2018-06-17 13:11           ` Eli Zaretskii
2018-06-23  5:23             ` Aaron Jensen
2018-06-23  6:54               ` Eli Zaretskii
2018-06-30  8:19                 ` Eli Zaretskii
2018-06-30 18:22                   ` Aaron Jensen

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='jwva7rc5sd1.fsf-monnier+bug#31853@gnu.org' \
    --to=monnier@iro.umontreal.ca \
    --cc=31853@debbugs.gnu.org \
    --cc=aaronjensen@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 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.