unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: Paul Eggert <eggert@cs.ucla.edu>
To: Stefan Monnier <monnier@iro.umontreal.ca>, emacs-devel@gnu.org
Subject: Re: [Emacs-diffs] master 1392ec7 2/3: A quicker check for quit
Date: Wed, 1 Feb 2017 16:01:52 -0800	[thread overview]
Message-ID: <17190465-cc34-d24a-e281-8538127f88fe@cs.ucla.edu> (raw)
In-Reply-To: <jwvh94mvt66.fsf-monnier+emacsdiffs@gnu.org>

On 01/26/2017 05:40 AM, Stefan Monnier wrote:
> for circular lists a better solution is to use the hare&tortoise, e.g. with FOR_EACH_TAIL.
OK, after installing the patches that I circulated earlier, I submitted 
bug reports containing two draft patches to use hare&tortoise and 
FOR_EACH_TAIL instead of maybe_quit, when possible.

The patch in Bug#25605 improves FOR_EACH_TAIL to fix its FIXMEs and to 
switch to Brent's teleporting-tortoise algorithm, which is faster than 
Floyd's plodding tortoise.

The patch in Bug#25606 changes functions like 'length' and 'member' so 
that they use FOR_EACH_TAIL to signal loop cycles, rather than wait for 
the user to type C-g. Alternatively, functions like 'member' could 
simply return nil when they discover a cycle; however, in practice I 
think it's probably better to signal.



      parent reply	other threads:[~2017-02-02  0:01 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <20170126052541.29089.5382@vcs.savannah.gnu.org>
     [not found] ` <20170126052542.828422201BC@vcs.savannah.gnu.org>
2017-01-26 13:40   ` [Emacs-diffs] master 1392ec7 2/3: A quicker check for quit Stefan Monnier
2017-01-26 17:45     ` Paul Eggert
2017-01-26 20:02       ` Eli Zaretskii
2017-01-29 17:30       ` Eli Zaretskii
2017-01-29 17:47         ` Stefan Monnier
2017-01-29 20:16           ` Eli Zaretskii
2017-01-29 23:05         ` Paul Eggert
2017-01-30 15:33           ` Eli Zaretskii
2017-01-30 21:52             ` Paul Eggert
2017-01-31 15:48               ` Eli Zaretskii
2017-01-31 16:31                 ` Stefan Monnier
2017-01-31 16:59                 ` Paul Eggert
2017-02-02  0:01     ` Paul Eggert [this message]

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=17190465-cc34-d24a-e281-8538127f88fe@cs.ucla.edu \
    --to=eggert@cs.ucla.edu \
    --cc=emacs-devel@gnu.org \
    --cc=monnier@iro.umontreal.ca \
    /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).